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/calendar/src/assets
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets/favicons/favicon-calendar-dynamic-2.svg
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"> <path fill="#fff" d="M6 5h10v7.5a2.5 2.5 0 0 1-2.5 2.5H6V5Z" /> <path fill="url(#a)" fill-rule="evenodd" d="M0 3a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3Z" cli...
2,600
0
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets/favicons/favicon-calendar-dynamic-20.svg
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"> <path fill="#fff" d="M6 5h10v7.5a2.5 2.5 0 0 1-2.5 2.5H6V5Z" /> <path fill="url(#a)" fill-rule="evenodd" d="M0 3a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3Z" cli...
2,601
0
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets/favicons/favicon-calendar-dynamic-21.svg
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"> <path fill="#fff" d="M6 5h10v7.5a2.5 2.5 0 0 1-2.5 2.5H6V5Z" /> <path fill="url(#a)" fill-rule="evenodd" d="M0 3a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3Z" cli...
2,602
0
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets/favicons/favicon-calendar-dynamic-22.svg
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"> <path fill="#fff" d="M6 5h10v7.5a2.5 2.5 0 0 1-2.5 2.5H6V5Z" /> <path fill="url(#a)" fill-rule="evenodd" d="M0 3a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3Z" cli...
2,603
0
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets/favicons/favicon-calendar-dynamic-23.svg
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"> <path fill="#fff" d="M6 5h10v7.5a2.5 2.5 0 0 1-2.5 2.5H6V5Z" /> <path fill="url(#a)" fill-rule="evenodd" d="M0 3a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3Z" cli...
2,604
0
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets/favicons/favicon-calendar-dynamic-24.svg
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"> <path fill="#fff" d="M6 5h10v7.5a2.5 2.5 0 0 1-2.5 2.5H6V5Z" /> <path fill="url(#a)" fill-rule="evenodd" d="M0 3a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3Z" cli...
2,605
0
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets/favicons/favicon-calendar-dynamic-25.svg
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"> <path fill="#fff" d="M6 5h10v7.5a2.5 2.5 0 0 1-2.5 2.5H6V5Z" /> <path fill="url(#a)" fill-rule="evenodd" d="M0 3a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3Z" cli...
2,606
0
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets/favicons/favicon-calendar-dynamic-26.svg
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"> <path fill="#fff" d="M6 5h10v7.5a2.5 2.5 0 0 1-2.5 2.5H6V5Z" /> <path fill="url(#a)" fill-rule="evenodd" d="M0 3a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3Z" cli...
2,607
0
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets/favicons/favicon-calendar-dynamic-27.svg
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"> <path fill="#fff" d="M6 5h10v7.5a2.5 2.5 0 0 1-2.5 2.5H6V5Z" /> <path fill="url(#a)" fill-rule="evenodd" d="M0 3a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3Z" cli...
2,608
0
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets/favicons/favicon-calendar-dynamic-28.svg
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"> <path fill="#fff" d="M6 5h10v7.5a2.5 2.5 0 0 1-2.5 2.5H6V5Z" /> <path fill="url(#a)" fill-rule="evenodd" d="M0 3a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3Z" cli...
2,609
0
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets/favicons/favicon-calendar-dynamic-29.svg
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"> <path fill="#fff" d="M6 5h10v7.5a2.5 2.5 0 0 1-2.5 2.5H6V5Z" /> <path fill="url(#a)" fill-rule="evenodd" d="M0 3a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3Z" cli...
2,610
0
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets/favicons/favicon-calendar-dynamic-3.svg
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"> <path fill="#fff" d="M6 5h10v7.5a2.5 2.5 0 0 1-2.5 2.5H6V5Z" /> <path fill="url(#a)" fill-rule="evenodd" d="M0 3a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3Z" cli...
2,611
0
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets/favicons/favicon-calendar-dynamic-30.svg
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"> <path fill="#fff" d="M6 5h10v7.5a2.5 2.5 0 0 1-2.5 2.5H6V5Z" /> <path fill="url(#a)" fill-rule="evenodd" d="M0 3a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3Z" cli...
2,612
0
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets/favicons/favicon-calendar-dynamic-31.svg
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"> <path fill="#fff" d="M6 5h10v7.5a2.5 2.5 0 0 1-2.5 2.5H6V5Z" /> <path fill="url(#a)" fill-rule="evenodd" d="M0 3a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3Z" cli...
2,613
0
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets/favicons/favicon-calendar-dynamic-4.svg
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"> <path fill="#fff" d="M6 5h10v7.5a2.5 2.5 0 0 1-2.5 2.5H6V5Z" /> <path fill="url(#a)" fill-rule="evenodd" d="M0 3a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3Z" cli...
2,614
0
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets/favicons/favicon-calendar-dynamic-5.svg
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"> <path fill="#fff" d="M6 5h10v7.5a2.5 2.5 0 0 1-2.5 2.5H6V5Z" /> <path fill="url(#a)" fill-rule="evenodd" d="M0 3a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3Z" cli...
2,615
0
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets/favicons/favicon-calendar-dynamic-6.svg
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"> <path fill="#fff" d="M6 5h10v7.5a2.5 2.5 0 0 1-2.5 2.5H6V5Z" /> <path fill="url(#a)" fill-rule="evenodd" d="M0 3a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3Z" cli...
2,616
0
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets/favicons/favicon-calendar-dynamic-7.svg
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"> <path fill="#fff" d="M6 5h10v7.5a2.5 2.5 0 0 1-2.5 2.5H6V5Z" /> <path fill="url(#a)" fill-rule="evenodd" d="M0 3a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3Z" cli...
2,617
0
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets/favicons/favicon-calendar-dynamic-8.svg
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"> <path fill="#fff" d="M6 5h10v7.5a2.5 2.5 0 0 1-2.5 2.5H6V5Z" /> <path fill="url(#a)" fill-rule="evenodd" d="M0 3a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3Z" cli...
2,618
0
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets/favicons/favicon-calendar-dynamic-9.svg
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"> <path fill="#fff" d="M6 5h10v7.5a2.5 2.5 0 0 1-2.5 2.5H6V5Z" /> <path fill="url(#a)" fill-rule="evenodd" d="M0 3a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3Z" cli...
2,619
0
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets
petrpan-code/ProtonMail/WebClients/applications/calendar/src/assets/favicons/index.ts
import svg1 from './favicon-calendar-dynamic-1.svg'; import svg2 from './favicon-calendar-dynamic-2.svg'; import svg3 from './favicon-calendar-dynamic-3.svg'; import svg4 from './favicon-calendar-dynamic-4.svg'; import svg5 from './favicon-calendar-dynamic-5.svg'; import svg6 from './favicon-calendar-dynamic-6.svg'; im...
2,620
0
petrpan-code/ProtonMail/WebClients/applications/calendar
petrpan-code/ProtonMail/WebClients/applications/calendar/typings/index.d.ts
declare module '*.png'; declare module '*.gif'; declare module '*.md'; declare module '*.png'; declare module '*.ttf'; declare module '*.pdf';
2,621
0
petrpan-code/ProtonMail/WebClients/applications
petrpan-code/ProtonMail/WebClients/applications/drive/.eslintrc.js
const isFixMode = process.argv.includes('--fix'); module.exports = { extends: ['@proton/eslint-config-proton'], parser: '@typescript-eslint/parser', parserOptions: { tsconfigRootDir: __dirname, project: './tsconfig.json', }, rules: { 'react/prop-types': 'off', ...(!is...
2,622
0
petrpan-code/ProtonMail/WebClients/applications
petrpan-code/ProtonMail/WebClients/applications/drive/CHANGELOG.md
# Release 5.0.16.0 - October 11, 2023 ## Improved - More thorough block verification for new uploads ## Fixed - Video thumbnails generation on Firefox # Release 5.0.15.0 - September 5, 2023 ## Improved - Quick settings and sidebar layout improvements - Drive now uses vertical space more efficiently in fi...
2,623
0
petrpan-code/ProtonMail/WebClients/applications
petrpan-code/ProtonMail/WebClients/applications/drive/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,624
0
petrpan-code/ProtonMail/WebClients/applications
petrpan-code/ProtonMail/WebClients/applications/drive/favicon.config.js
const path = require('path'); const url = 'https://drive.proton.me/'; module.exports = { logo: path.resolve('./src/favicon.svg'), logoMaskable: path.resolve('./src/icon-maskable.svg'), favicons: { appName: 'Proton Drive', appDescription: 'Proton Drive allows you to securely sto...
2,625
0
petrpan-code/ProtonMail/WebClients/applications
petrpan-code/ProtonMail/WebClients/applications/drive/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,626
0
petrpan-code/ProtonMail/WebClients/applications
petrpan-code/ProtonMail/WebClients/applications/drive/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,627
0
petrpan-code/ProtonMail/WebClients/applications
petrpan-code/ProtonMail/WebClients/applications/drive/jest.setup.js
import '@testing-library/jest-dom'; import { TextDecoder, TextEncoder } from 'util'; import '@proton/testing/lib/mockMatchMedia'; import '@proton/testing/lib/mockUnleash'; // Getting ReferenceError: TextDecoder is not defined without global.TextEncoder = TextEncoder; global.TextDecoder = TextDecoder; // JSDom does n...
2,628
0
petrpan-code/ProtonMail/WebClients/applications
petrpan-code/ProtonMail/WebClients/applications/drive/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,629
0
petrpan-code/ProtonMail/WebClients/applications
petrpan-code/ProtonMail/WebClients/applications/drive/package.json
{ "name": "proton-drive", "description": "Proton-drive", "license": "GPL-3.0", "author": "", "main": "index.ts", "scripts": { "build": "cross-env NODE_ENV=production TS_NODE_PROJECT=\"../../tsconfig.webpack.json\" proton-pack build --appMode=sso", "check-types": "tsc", "i...
2,630
0
petrpan-code/ProtonMail/WebClients/applications
petrpan-code/ProtonMail/WebClients/applications/drive/sentry.properties
defaults.project=web-drive
2,631
0
petrpan-code/ProtonMail/WebClients/applications
petrpan-code/ProtonMail/WebClients/applications/drive/tsconfig.json
{ "extends": "../../tsconfig.base.json", "compilerOptions": { "lib": ["dom", "dom.iterable", "esnext", "webworker"] } }
2,632
0
petrpan-code/ProtonMail/WebClients/applications
petrpan-code/ProtonMail/WebClients/applications/drive/webpack.config.ts
import HtmlWebpackPlugin from 'html-webpack-plugin'; import webpack from 'webpack'; import getConfig from '@proton/pack/webpack.config'; /** * There are some specific references to Buffer in the drive application, * e.g. MimeTypes so it has to be polyfilled */ const result = (env: any): webpack.Configuration => { ...
2,633
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/__mocks__/fileMock.js
// __mocks__/fileMock.js module.exports = 'test-file-stub';
2,634
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/__mocks__/styleMock.js
// __mocks__/styleMock.js module.exports = {};
2,635
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/locales/.locale-state.metadata
{ "project": "fe-drive", "locale": "132b760aa20a679281128aa20eefbdd6ce015552" }
2,636
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/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": { "account": { "Forwarding will start soon. New emails will appear in your inbox.": [ "Неўзабаве пачнецца перасылка....
2,637
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/locales/ca_ES.json
{ "headers": { "plural-forms": "nplurals=2; plural=(n != 1);", "language": "ca_ES" }, "contexts": { "account": { "Forwarding will start soon. New emails will appear in your inbox.": [ "El reenviament començarà aviat. Els correus electrònics nous apareixeran a la vostra safata d'entrada."...
2,638
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/locales/cs_CZ.json
{ "headers": { "plural-forms": "nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;", "language": "cs_CZ" }, "contexts": { "account": { "Forwarding will start soon. New emails will appear in your inbox.": [ "Přeposílání bude brzy zahájeno. Nové e-maily se zobrazí ve vaší schránce." ...
2,639
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/locales/da_DK.json
{ "headers": { "plural-forms": "nplurals=2; plural=(n != 1);", "language": "da_DK" }, "contexts": { "account": { "Forwarding will start soon. New emails will appear in your inbox.": [ "Videresendelse vil starte snart. Nye e-mails vil snart vises i din indbakke." ], "Mail forw...
2,640
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/locales/de_DE.json
{ "headers": { "plural-forms": "nplurals=2; plural=(n != 1);", "language": "de_DE" }, "contexts": { "account": { "Forwarding will start soon. New emails will appear in your inbox.": [ "Weiterleiten beginnt bald. Neue E-Mails werden in deinem Posteingang erscheinen." ], "Mail ...
2,641
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/locales/el_GR.json
{ "headers": { "plural-forms": "nplurals=2; plural=(n != 1);", "language": "el_GR" }, "contexts": { "account": { "Forwarding will start soon. New emails will appear in your inbox.": [ "Η προώθηση θα ξεκινήσει σύντομα. Νέα μηνύματα ηλεκτρονικού ταχυδρομείου θα εμφανιστούν στα εισερχόμενά ...
2,642
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/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,643
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/locales/es_ES.json
{ "headers": { "plural-forms": "nplurals=2; plural=(n != 1);", "language": "es_ES" }, "contexts": { "account": { "Forwarding will start soon. New emails will appear in your inbox.": [ "El reenvío iniciará pronto. Los correos nuevos aparecerán en tu bandeja de entrada." ], "Ma...
2,644
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/locales/es_LA.json
{ "headers": { "plural-forms": "nplurals=2; plural=(n != 1);", "language": "es_LA" }, "contexts": { "account": { "Forwarding will start soon. New emails will appear in your inbox.": [ "El reenvío iniciará pronto. Los correos nuevos aparecerán en su buzón." ], "Mail forward st...
2,645
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/locales/fi_FI.json
{ "headers": { "plural-forms": "nplurals=2; plural=(n != 1);", "language": "fi_FI" }, "contexts": { "account": { "Forwarding will start soon. New emails will appear in your inbox.": [ "Ohjaus alkaa pian ja uudet viestit saapuvat postilaatikkoosi." ], "Mail forward stopped": [...
2,646
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/locales/fr_FR.json
{ "headers": { "plural-forms": "nplurals=2; plural=(n >= 2);", "language": "fr_FR" }, "contexts": { "account": { "Forwarding will start soon. New emails will appear in your inbox.": [ "Le transfert commencera bientôt. De nouveaux messages apparaîtront dans votre boite de réception." ...
2,647
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/locales/hi_IN.json
{ "headers": { "plural-forms": "nplurals=2; plural=(n != 1);", "language": "hi_IN" }, "contexts": { "account": { "Forwarding will start soon. New emails will appear in your inbox.": [ "फॉरवर्ड करना जल्द शुरू होगा। नए ईमेल आपके इनबॉक्स में आएंगे।" ], "Mail forward stopped": [ ...
2,648
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/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,649
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/locales/hu_HU.json
{ "headers": { "plural-forms": "nplurals=2; plural=(n != 1);", "language": "hu_HU" }, "contexts": { "account": { "Forwarding will start soon. New emails will appear in your inbox.": [ "Az átirányítás hamarosan indul. Az új levelek a bejövő üzeneteinél fognak megjelenni." ], "...
2,650
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/locales/id_ID.json
{ "headers": { "plural-forms": "nplurals=1; plural=0;", "language": "id_ID" }, "contexts": { "account": { "Forwarding will start soon. New emails will appear in your inbox.": [ "Penerusan surel akan segera dimulai. Surel baru akan muncul pada kotak masuk Anda." ], "Mail forwa...
2,651
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/locales/it_IT.json
{ "headers": { "plural-forms": "nplurals=2; plural=(n != 1);", "language": "it_IT" }, "contexts": { "account": { "Forwarding will start soon. New emails will appear in your inbox.": [ "L'inoltro inizierà a breve. Le nuove email appariranno nella tua casella di posta." ], "Mai...
2,652
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/locales/ja_JP.json
{ "headers": { "plural-forms": "nplurals=1; plural=0;", "language": "ja_JP" }, "contexts": { "account": { "Forwarding will start soon. New emails will appear in your inbox.": [ "転送がすぐに始まります。新しいメールが受信トレイに出現します。" ], "Mail forward stopped": [ "メールの転送を停止しました" ] ...
2,653
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/locales/ka_KA.json
{ "headers": { "plural-forms": "nplurals=1; plural=0;", "language": "ka_KA" }, "contexts": { "account": { "Forwarding will start soon. New emails will appear in your inbox.": [ "გადაგზავნა მალე დაიწყება. თქვენს საფოსტო ყუთში ახალი ელფოსტები გამოჩნდება." ], "Mail forward stopp...
2,654
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/locales/kab_DZ.json
{ "headers": { "plural-forms": "nplurals=2; plural=(n != 1)", "language": "kab_DZ" }, "contexts": { "account": { "Mail forward stopped": [ "Awelleh n yimayl yeḥbes" ] }, "Action": { "${ BRAND_NAME } shop": [ "Taḥanut ${ BRAND_NAME }" ], "Activate r...
2,655
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/locales/ko_KO.json
{ "headers": { "plural-forms": "nplurals=1; plural=0;", "language": "ko_KO" }, "contexts": { "account": { "Forwarding will start soon. New emails will appear in your inbox.": [ "포워딩이 곧 시작됩니다. 새 이메일이 받은 편지함에 나타날 것입니다." ], "Mail forward stopped": [ "메일 전달 중단됨" ] ...
2,656
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/locales/nl_NL.json
{ "headers": { "plural-forms": "nplurals=2; plural=(n != 1);", "language": "nl_NL" }, "contexts": { "account": { "Forwarding will start soon. New emails will appear in your inbox.": [ "Doorsturen start binnenkort. Nieuwe e-mails verschijnen in uw inbox." ], "Mail forward stop...
2,657
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/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": { "account": { "Forwarding will start soon. New emails will appear in your inbox.": [ "Przekierowanie rozpocznie się wkrótce. Nowe w...
2,658
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/locales/pt_BR.json
{ "headers": { "plural-forms": "nplurals=2; plural=(n > 1);", "language": "pt_BR" }, "contexts": { "account": { "Forwarding will start soon. New emails will appear in your inbox.": [ "O encaminhamento começará em breve. Novos e-mails aparecerão na sua caixa de entrada." ], "M...
2,659
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/locales/pt_PT.json
{ "headers": { "plural-forms": "nplurals=2; plural=(n != 1);", "language": "pt_PT" }, "contexts": { "account": { "Forwarding will start soon. New emails will appear in your inbox.": [ "O reencaminhamento começará em breve. Os novos e-mails aparecerão na sua caixa de entrada." ], ...
2,660
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/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": { "account": { "Forwarding will start soon. New emails will appear in your inbox.": [ "Redirecționarea va începe curând. Noile mesaje vor apăr...
2,661
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/locales/ru_RU.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": "ru_RU" }, "contexts": { "account": { "Forwarding will start soon. New emails will appear in your inbox.": [ "Пересылка скоро начнется. Нов...
2,662
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/locales/sk_SK.json
{ "headers": { "plural-forms": "nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;", "language": "sk_SK" }, "contexts": { "account": { "Forwarding will start soon. New emails will appear in your inbox.": [ "Preposielanie začne čoskoro. Nové emaily sa zobrazia vo vašej doručenej pošt...
2,663
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/locales/sv_SE.json
{ "headers": { "plural-forms": "nplurals=2; plural=(n != 1);", "language": "sv_SE" }, "contexts": { "account": { "Forwarding will start soon. New emails will appear in your inbox.": [ "Vidarebefordran kommer snart starta. Nya e-postmeddelanden kommer visas i din inkorg." ], "...
2,664
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/locales/tr_TR.json
{ "headers": { "plural-forms": "nplurals=2; plural=(n > 1);", "language": "tr_TR" }, "contexts": { "account": { "Forwarding will start soon. New emails will appear in your inbox.": [ "İletme işlemi birazdan başlayacak ve yeni e-postalar gelen kutunuzda görünecek." ], "Mail fo...
2,665
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/locales/uk_UA.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": "uk_UA" }, "contexts": { "account": { "Forwarding will start soon. New emails will appear in your inbox.": [ "Незабаром розпочнеться переси...
2,666
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/locales/zh_CN.json
{ "headers": { "plural-forms": "nplurals=2; plural=(n > 1);", "language": "zh_CN" }, "contexts": { "account": { "Forwarding will start soon. New emails will appear in your inbox.": [ "转发将很快开始。 新邮件将出现在您的收件箱中。" ], "Mail forward stopped": [ "邮件转发已停止" ] }, "...
2,667
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/locales/zh_TW.json
{ "headers": { "plural-forms": "nplurals=2; plural=(n > 1);", "language": "zh_TW" }, "contexts": { "account": { "Forwarding will start soon. New emails will appear in your inbox.": [ "轉發將很快開始。新電子郵件將會出現在您的收件匣中。" ], "Mail forward stopped": [ "已停止郵件轉寄" ] }, ...
2,668
0
petrpan-code/ProtonMail/WebClients/applications/drive/locales
petrpan-code/ProtonMail/WebClients/applications/drive/locales/config/locales.json
{ "en_US": "English", "de_DE": "Deutsch", "fr_FR": "Français", "es_ES": "Español (España)", "es_LA": "Español (Latinoamérica)", "it_IT": "Italiano", "nl_NL": "Nederlands", "pl_PL": "Polski", "pt_BR": "Português (Brasil)", "ru_RU": "Русский", "be_BY": "Беларуская", "ca_ES": "Català", "cs_CZ": "...
2,669
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/public/robots.txt
User-agent: * Allow: / Disallow: /urls/ Sitemap: https://proton.me/sitemap.xml Host: proton.me
2,670
0
petrpan-code/ProtonMail/WebClients/applications/drive/public
petrpan-code/ProtonMail/WebClients/applications/drive/public/assets/404.html
<!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html> <head> <title>404 Not Found</title> </head> <body> <h1>Not Found</h1> <p>The requested URL was not found on this server.</p> <a href="/">Back to Proton</a> </body> </html>
2,671
0
petrpan-code/ProtonMail/WebClients/applications/drive/public
petrpan-code/ProtonMail/WebClients/applications/drive/public/assets/sandbox.js
"use strict";(()=>{var Ue=Object.create;var Te=Object.defineProperty;var We=Object.getOwnPropertyDescriptor;var He=Object.getOwnPropertyNames;var $e=Object.getPrototypeOf,Ze=Object.prototype.hasOwnProperty;var ge=(S=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(S,{get:(z,E)=>(typeof require<"u"?require:z)[E]})...
2,672
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/src/.htaccess
RewriteEngine On # Redirect to https if not coming from https && not forwarded from https && not curl nor any health check user-agent RewriteCond %{HTTPS} !=on RewriteCond %{HTTP:X-Forwarded-Proto} !=https RewriteCond %{HTTP_USER_AGENT} !(^kube-probe|^GoogleHC|^curl) RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L...
2,673
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/src/app.ejs
<!DOCTYPE html> <html lang="en"> <head> <%- include head.ejs %> </head> <body> <div class="app-root"></div> <div class="app-root-loader"></div> <noscript class="app-noscript"> <%= appName %> requires Javascript. Enable Javascript and reload this page to continue. </noscript> </body> </html>
2,674
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/src/favicon.svg
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"> <path fill="url(#a)" fill-rule="evenodd" d="M0 3v9a2 2 0 0 0 2 2h11V6a2 2 0 0 0-2-2H5.606a1.5 1.5 0 0 1-.832-.252L4.28 3.42A2.5 2.5 0 0 0 2.894 3H0Z" clip-rule="evenodd" /> <path ...
2,675
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/src/head.ejs
<meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="x-dns-prefetch-control" content="off" /> <base href="/" /> <link rel="canonical" href="<%= url %>"> <title><%= appName %></title> <meta name="description" content="<%= description %>"> <meta property="og:t...
2,676
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/src/icon-maskable.svg
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <rect width="24" height="24" fill="white" /> <path d="M6.00001 8.25998L7.7143 7.66187L10.7143 9.33806H15.8572L15.8571 16.5809L15.4286 17H7.28571C6.57563 17 6 16.4371 6 15.7428L6.00001 8.25998Z" fill="...
2,677
0
petrpan-code/ProtonMail/WebClients/applications/drive
petrpan-code/ProtonMail/WebClients/applications/drive/src/urls.ejs
<!DOCTYPE html> <html lang="en"> <head> <%- include head.ejs %> <meta name="robots" content="noindex"> </head> <body> <div class="app-root"></div> <div class="app-root-loader"></div> <noscript class="app-noscript"> <%= appName %> requires Javascript. Enable Javascript and reload this page to...
2,678
0
petrpan-code/ProtonMail/WebClients/applications/drive/src
petrpan-code/ProtonMail/WebClients/applications/drive/src/app/App.tsx
import { useState } from 'react'; import { Route, Switch } from 'react-router-dom'; import { LoaderPage, ProtonApp, StandardPublicApp, StandardSetup, getSessionTrackingEnabled } from '@proton/components'; import { setupGuestCrossStorage } from '@proton/cross-storage/account-impl/guestInstance'; import metrics from '@p...
2,679
0
petrpan-code/ProtonMail/WebClients/applications/drive/src
petrpan-code/ProtonMail/WebClients/applications/drive/src/app/PrivateApp.tsx
import { LoaderPage, StandardPrivateApp, useDrawer } from '@proton/components'; import { DRAWER_VISIBILITY } from '@proton/shared/lib/interfaces'; import { TtagLocaleMap } from '@proton/shared/lib/interfaces/Locale'; import { AddressesModel, ContactEmailsModel, ContactsModel, LabelsModel, MailSettin...
2,680
0
petrpan-code/ProtonMail/WebClients/applications/drive/src
petrpan-code/ProtonMail/WebClients/applications/drive/src/app/app.scss
@import '~@proton/styles/scss/proton-drive'; @import '~@proton/styles/scss/specifics/placeholder-loading'; @import '~@proton/styles/scss/specifics/list'; @import './components/sections/Trash/EmptyTrashNotification/EmptyTrashNotification'; @import './components/FileBrowser/FileBrowser'; @import './components/TransferMa...
2,681
0
petrpan-code/ProtonMail/WebClients/applications/drive/src
petrpan-code/ProtonMail/WebClients/applications/drive/src/app/index.tsx
import ReactDOM from 'react-dom'; import '@proton/polyfill'; import App from './App'; ReactDOM.render(<App />, document.querySelector('.app-root'));
2,682
0
petrpan-code/ProtonMail/WebClients/applications/drive/src
petrpan-code/ProtonMail/WebClients/applications/drive/src/app/locales.ts
import { getLocalesFromRequireContext } from '@proton/shared/lib/i18n/locales'; const requireContext = import.meta.webpackContext!('../../locales', { recursive: false, regExp: /\.json$/, mode: 'lazy', chunkName: 'locales/[request]', }); const locales = getLocalesFromRequireContext(requireContext); ex...
2,683
0
petrpan-code/ProtonMail/WebClients/applications/drive/src/app
petrpan-code/ProtonMail/WebClients/applications/drive/src/app/components/AppErrorBoundary.tsx
import { useEffect, useState } from 'react'; import * as React from 'react'; import { useLocation } from 'react-router-dom'; import { AccessDeniedError, ErrorBoundary, GenericError, InternalServerError, NotFoundError, PrivateMainArea, generateUID, } from '@proton/components'; import { HTTP_...
2,684
0
petrpan-code/ProtonMail/WebClients/applications/drive/src/app
petrpan-code/ProtonMail/WebClients/applications/drive/src/app/components/SignatureAlert.tsx
import { c } from 'ttag'; import { Alert, TextLoader } from '@proton/components'; import { VERIFICATION_STATUS } from '@proton/crypto'; import { getKnowledgeBaseUrl } from '@proton/shared/lib/helpers/url'; import { SignatureIssueLocation, SignatureIssues } from '../store'; type Props = { loading: boolean; si...
2,685
0
petrpan-code/ProtonMail/WebClients/applications/drive/src/app
petrpan-code/ProtonMail/WebClients/applications/drive/src/app/components/SignatureIcon.tsx
import { c } from 'ttag'; import { Icon, Tooltip } from '@proton/components'; interface Props { signatureIssues?: any; isFile: boolean; className?: string; } export default function SignatureIcon({ isFile, signatureIssues, className }: Props) { if (!signatureIssues) { return null; } ...
2,686
0
petrpan-code/ProtonMail/WebClients/applications/drive/src/app
petrpan-code/ProtonMail/WebClients/applications/drive/src/app/components/useOpenPreview.ts
import useNavigate from '../hooks/drive/useNavigate'; import { useSpotlight } from './useSpotlight'; const useOpenPreview = () => { const { navigateToLink } = useNavigate(); const spotlight = useSpotlight(); const openPreview = (shareId: string, linkId: string) => { spotlight.searchSpotlight.close...
2,687
0
petrpan-code/ProtonMail/WebClients/applications/drive/src/app
petrpan-code/ProtonMail/WebClients/applications/drive/src/app/components/useSpotlight.tsx
import { ReactNode, createContext, useContext, useEffect, useMemo, useState } from 'react'; import { FeatureCode, useSpotlightOnFeature, useSpotlightShow } from '@proton/components'; import { DriveFolder } from '../hooks/drive/useActiveShare'; import { useLinksListing } from '../store/_links'; import { useDefaultShar...
2,688
0
petrpan-code/ProtonMail/WebClients/applications/drive/src/app/components
petrpan-code/ProtonMail/WebClients/applications/drive/src/app/components/DriveBreadcrumbs/DriveBreadcrumbs.tsx
import { useEffect, useState } from 'react'; import { c } from 'ttag'; import { CollapsingBreadcrumbs, Loader, useNotifications } from '@proton/components'; import { BreadcrumbInfo } from '@proton/components/components/collapsingBreadcrumbs/interfaces'; import { DriveFolder } from '../../hooks/drive/useActiveShare';...
2,689
0
petrpan-code/ProtonMail/WebClients/applications/drive/src/app/components
petrpan-code/ProtonMail/WebClients/applications/drive/src/app/components/DriveBreadcrumbs/index.ts
export { default } from './DriveBreadcrumbs';
2,690
0
petrpan-code/ProtonMail/WebClients/applications/drive/src/app/components
petrpan-code/ProtonMail/WebClients/applications/drive/src/app/components/FileBrowser/FileBrowser.scss
@import '~@proton/styles/scss/lib'; .file-browser-header-checkbox-cell, .file-browser-list-checkbox-cell { position: relative; // Because of .increase-click-surface padding-inline: 1em; inline-size: calc(#{rem(16)} + 2em); } .file-browser-header-sort-cell { margin: -0.5em; } .file-browser-table { th { block-s...
2,691
0
petrpan-code/ProtonMail/WebClients/applications/drive/src/app/components
petrpan-code/ProtonMail/WebClients/applications/drive/src/app/components/FileBrowser/FileBrowser.tsx
import { useCallback, useRef } from 'react'; import { LayoutSetting } from '@proton/shared/lib/interfaces/drive/userSettings'; import useOnScrollEnd from '../../hooks/util/useOnScrollEnd'; import GridView from './GridView/GridView'; import { ListView } from './ListView/ListView'; import { BrowserItemId, DragMoveContr...
2,692
0
petrpan-code/ProtonMail/WebClients/applications/drive/src/app/components
petrpan-code/ProtonMail/WebClients/applications/drive/src/app/components/FileBrowser/index.ts
export { default } from './FileBrowser'; export * from './interface'; export * as Cells from './ListView/Cells'; export { ListView } from './ListView/ListView'; export { GridHeader } from './GridView/GridHeader'; export { useItemContextMenu } from './state/useItemContextMenu'; export { useSelection } from './state/u...
2,693
0
petrpan-code/ProtonMail/WebClients/applications/drive/src/app/components
petrpan-code/ProtonMail/WebClients/applications/drive/src/app/components/FileBrowser/interface.ts
import React from 'react'; import { SORT_DIRECTION } from '@proton/shared/lib/constants'; export interface DragMoveControls { handleDragOver: (event: React.DragEvent<HTMLTableRowElement>) => void; handleDrop: (e: React.DragEvent<HTMLTableRowElement>) => void; handleDragLeave: () => void; handleDragEnt...
2,694
0
petrpan-code/ProtonMail/WebClients/applications/drive/src/app/components/FileBrowser
petrpan-code/ProtonMail/WebClients/applications/drive/src/app/components/FileBrowser/GridView/GridHeader.tsx
import * as React from 'react'; import { c, msgid } from 'ttag'; import { Checkbox, Icon, Loader, TableHeaderCell, TableRowSticky, Tooltip } from '@proton/components'; import { SORT_DIRECTION } from '@proton/shared/lib/constants'; import { getNumAccessesTooltipMessage } from '@proton/shared/lib/drive/translations'; ...
2,695
0
petrpan-code/ProtonMail/WebClients/applications/drive/src/app/components/FileBrowser
petrpan-code/ProtonMail/WebClients/applications/drive/src/app/components/FileBrowser/GridView/GridView.tsx
import { useRef } from 'react'; import { FixedSizeGrid, GridChildComponentProps } from 'react-window'; import { Loader, Table, useElementRect, useRightToLeft } from '@proton/components'; import clsx from '@proton/utils/clsx'; import { FileBrowserProps } from '../FileBrowser'; import { FileBrowserBaseItem } from '../i...
2,696
0
petrpan-code/ProtonMail/WebClients/applications/drive/src/app/components/FileBrowser
petrpan-code/ProtonMail/WebClients/applications/drive/src/app/components/FileBrowser/GridView/ItemCell.tsx
import { useEffect } from 'react'; import * as React from 'react'; import { DragMoveContainer } from '@proton/components'; import clsx from '@proton/utils/clsx'; import useDragAndDrop from '../hooks/useDragAndDrop'; import useFileBrowserItem from '../hooks/useFileBrowserItem'; import { DragMoveControls, FileBrowserBa...
2,697
0
petrpan-code/ProtonMail/WebClients/applications/drive/src/app/components/FileBrowser
petrpan-code/ProtonMail/WebClients/applications/drive/src/app/components/FileBrowser/GridView/utils.ts
import { rootFontSize } from '@proton/shared/lib/helpers/dom'; export const calculateCellDimensions = (areaWidth: number) => { const itemWidth = 13.5 * rootFontSize(); // 13.5 * 16 = we want 216px by default const itemHeight = 12.25 * rootFontSize(); // 12.25 * 16 = we want 196px by default const rowItemC...
2,698
0
petrpan-code/ProtonMail/WebClients/applications/drive/src/app/components/FileBrowser
petrpan-code/ProtonMail/WebClients/applications/drive/src/app/components/FileBrowser/ListView/ItemRow.tsx
import { memo, useEffect } from 'react'; import { DragMoveContainer, TableRow } from '@proton/components'; import { isEquivalent } from '@proton/shared/lib/helpers/object'; import clsx from '@proton/utils/clsx'; import shallowEqual from '@proton/utils/shallowEqual'; import useDragAndDrop from '../hooks/useDragAndDrop...
2,699