diff --git a/web/apps/cast/package.json b/web/apps/cast/package.json index e544cd370..ee318ef61 100644 --- a/web/apps/cast/package.json +++ b/web/apps/cast/package.json @@ -9,8 +9,5 @@ "@ente/shared": "*", "jszip": "3.10.1", "mime-types": "^2.1.35" - }, - "devDependencies": { - "sass": "^1.69.5" } } diff --git a/web/apps/cast/src/constants/api.ts b/web/apps/cast/src/constants/api.ts deleted file mode 100644 index 17571f7f3..000000000 --- a/web/apps/cast/src/constants/api.ts +++ /dev/null @@ -1 +0,0 @@ -export const REQUEST_BATCH_SIZE = 1000; diff --git a/web/apps/cast/src/constants/collection.ts b/web/apps/cast/src/constants/collection.ts index cc2c00052..d91cfc81d 100644 --- a/web/apps/cast/src/constants/collection.ts +++ b/web/apps/cast/src/constants/collection.ts @@ -1,10 +1,3 @@ -export const ARCHIVE_SECTION = -1; -export const TRASH_SECTION = -2; -export const DUMMY_UNCATEGORIZED_COLLECTION = -3; -export const HIDDEN_ITEMS_SECTION = -4; -export const ALL_SECTION = 0; -export const DEFAULT_HIDDEN_COLLECTION_USER_FACING_NAME = "Hidden"; - export enum CollectionType { folder = "folder", favorites = "favorites", @@ -29,72 +22,3 @@ export enum CollectionSummaryType { hiddenItems = "hiddenItems", pinned = "pinned", } -export enum COLLECTION_LIST_SORT_BY { - NAME, - CREATION_TIME_ASCENDING, - UPDATION_TIME_DESCENDING, -} - -export const COLLECTION_SHARE_DEFAULT_VALID_DURATION = - 10 * 24 * 60 * 60 * 1000 * 1000; -export const COLLECTION_SHARE_DEFAULT_DEVICE_LIMIT = 4; - -export const COLLECTION_SORT_ORDER = new Map([ - [CollectionSummaryType.all, 0], - [CollectionSummaryType.hiddenItems, 0], - [CollectionSummaryType.uncategorized, 1], - [CollectionSummaryType.favorites, 2], - [CollectionSummaryType.pinned, 3], - [CollectionSummaryType.album, 4], - [CollectionSummaryType.folder, 4], - [CollectionSummaryType.incomingShareViewer, 4], - [CollectionSummaryType.incomingShareCollaborator, 4], - [CollectionSummaryType.outgoingShare, 4], - [CollectionSummaryType.sharedOnlyViaLink, 4], - [CollectionSummaryType.archived, 4], - [CollectionSummaryType.archive, 5], - [CollectionSummaryType.trash, 6], - [CollectionSummaryType.defaultHidden, 7], -]); - -export const SYSTEM_COLLECTION_TYPES = new Set([ - CollectionSummaryType.all, - CollectionSummaryType.archive, - CollectionSummaryType.trash, - CollectionSummaryType.uncategorized, - CollectionSummaryType.hiddenItems, - CollectionSummaryType.defaultHidden, -]); - -export const ADD_TO_NOT_ALLOWED_COLLECTION = new Set([ - CollectionSummaryType.all, - CollectionSummaryType.archive, - CollectionSummaryType.incomingShareViewer, - CollectionSummaryType.trash, - CollectionSummaryType.uncategorized, - CollectionSummaryType.defaultHidden, - CollectionSummaryType.hiddenItems, -]); - -export const MOVE_TO_NOT_ALLOWED_COLLECTION = new Set([ - CollectionSummaryType.all, - CollectionSummaryType.archive, - CollectionSummaryType.incomingShareViewer, - CollectionSummaryType.incomingShareCollaborator, - CollectionSummaryType.trash, - CollectionSummaryType.uncategorized, - CollectionSummaryType.defaultHidden, - CollectionSummaryType.hiddenItems, -]); - -export const OPTIONS_NOT_HAVING_COLLECTION_TYPES = new Set([ - CollectionSummaryType.all, - CollectionSummaryType.archive, -]); - -export const HIDE_FROM_COLLECTION_BAR_TYPES = new Set([ - CollectionSummaryType.trash, - CollectionSummaryType.archive, - CollectionSummaryType.uncategorized, - CollectionSummaryType.defaultHidden, -]); diff --git a/web/apps/cast/src/pages/_app.tsx b/web/apps/cast/src/pages/_app.tsx index 81c7292fc..3f22f687c 100644 --- a/web/apps/cast/src/pages/_app.tsx +++ b/web/apps/cast/src/pages/_app.tsx @@ -13,14 +13,7 @@ export default function App({ Component, pageProps }: AppProps) { - -
- -
+
); diff --git a/web/apps/cast/src/styles/global.css b/web/apps/cast/src/styles/global.css index 3ac2cfc5e..d3b720a39 100644 --- a/web/apps/cast/src/styles/global.css +++ b/web/apps/cast/src/styles/global.css @@ -1,5 +1,5 @@ body { - height: 100%; + height: 100vh; width: 100%; margin: 0; background-color: black; diff --git a/web/yarn.lock b/web/yarn.lock index ed9bd5437..8539b63b9 100644 --- a/web/yarn.lock +++ b/web/yarn.lock @@ -1437,14 +1437,6 @@ ansi-styles@^6.1.0: resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-6.2.1.tgz#0e62320cf99c21afff3b3012192546aacbfb05c5" integrity sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug== -anymatch@~3.1.2: - version "3.1.3" - resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.3.tgz#790c58b19ba1720a84205b57c618d5ad8524973e" - integrity sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw== - dependencies: - normalize-path "^3.0.0" - picomatch "^2.0.4" - argparse@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" @@ -1646,11 +1638,6 @@ base-x@^4.0.0: resolved "https://registry.yarnpkg.com/base-x/-/base-x-4.0.0.tgz#d0e3b7753450c73f8ad2389b5c018a4af7b2224a" integrity sha512-FuwxlW4H5kh37X/oW59pwTzzTKRzfrrQwhmyspRM7swOEZcHtDZSCt45U6oKgtuFE+WYPblePMVIPR4RZrh/hw== -binary-extensions@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.2.0.tgz#75f502eeaf9ffde42fc98829645be4ea76bd9e2d" - integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA== - bip39@^3.0.4: version "3.1.0" resolved "https://registry.yarnpkg.com/bip39/-/bip39-3.1.0.tgz#c55a418deaf48826a6ceb34ac55b3ee1577e18a3" @@ -1678,7 +1665,7 @@ brace-expansion@^2.0.1: dependencies: balanced-match "^1.0.0" -braces@^3.0.2, braces@~3.0.2: +braces@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== @@ -1752,21 +1739,6 @@ chalk@^4.0.0: ansi-styles "^4.1.0" supports-color "^7.1.0" -"chokidar@>=3.0.0 <4.0.0": - version "3.6.0" - resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.6.0.tgz#197c6cc669ef2a8dc5e7b4d97ee4e092c3eb0d5b" - integrity sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw== - dependencies: - anymatch "~3.1.2" - braces "~3.0.2" - glob-parent "~5.1.2" - is-binary-path "~2.1.0" - is-glob "~4.0.1" - normalize-path "~3.0.0" - readdirp "~3.6.0" - optionalDependencies: - fsevents "~2.3.2" - chrono-node@^2.2.6: version "2.7.5" resolved "https://registry.yarnpkg.com/chrono-node/-/chrono-node-2.7.5.tgz#1a8a03f94a7ae583b4d56b1427c766c0bafc3c1d" @@ -2790,7 +2762,7 @@ git-hooks-list@^3.0.0: resolved "https://registry.yarnpkg.com/git-hooks-list/-/git-hooks-list-3.1.0.tgz#386dc531dcc17474cf094743ff30987a3d3e70fc" integrity sha512-LF8VeHeR7v+wAbXqfgRlTSX/1BJR9Q1vEMR8JAz1cEg6GX07+zyj3sAdDvYjj/xnlIfVuGgj4qBei1K3hKH+PA== -glob-parent@^5.1.2, glob-parent@~5.1.2: +glob-parent@^5.1.2: version "5.1.2" resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== @@ -3022,11 +2994,6 @@ immediate@~3.0.5: resolved "https://registry.yarnpkg.com/immediate/-/immediate-3.0.6.tgz#9db1dbd0faf8de6fbe0f5dd5e56bb606280de69b" integrity sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ== -immutable@^4.0.0: - version "4.3.5" - resolved "https://registry.yarnpkg.com/immutable/-/immutable-4.3.5.tgz#f8b436e66d59f99760dc577f5c99a4fd2a5cc5a0" - integrity sha512-8eabxkth9gZatlwl5TBuJnCsoTADlL6ftEr7A4qgdaTsPyreilDSnUk57SO+jfKcNtxPa22U5KK6DSeAYhpBJw== - import-fresh@^3.2.1: version "3.3.0" resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b" @@ -3094,13 +3061,6 @@ is-bigint@^1.0.1: dependencies: has-bigints "^1.0.1" -is-binary-path@~2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09" - integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw== - dependencies: - binary-extensions "^2.0.0" - is-boolean-object@^1.1.0: version "1.1.2" resolved "https://registry.yarnpkg.com/is-boolean-object/-/is-boolean-object-1.1.2.tgz#5c6dc200246dd9321ae4b885a114bb1f75f63719" @@ -3164,7 +3124,7 @@ is-generator-function@^1.0.10: dependencies: has-tostringtag "^1.0.0" -is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1: +is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3: version "4.0.3" resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== @@ -3693,11 +3653,6 @@ node-releases@^2.0.14: resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.14.tgz#2ffb053bceb8b2be8495ece1ab6ce600c4461b0b" integrity sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw== -normalize-path@^3.0.0, normalize-path@~3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" - integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== - object-assign@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" @@ -3909,7 +3864,7 @@ picocolors@^1.0.0: resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c" integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ== -picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.3.1: +picomatch@^2.3.1: version "2.3.1" resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== @@ -4179,13 +4134,6 @@ readable-web-to-node-stream@^3.0.0: dependencies: readable-stream "^3.6.0" -readdirp@~3.6.0: - version "3.6.0" - resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7" - integrity sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA== - dependencies: - picomatch "^2.2.1" - reflect.getprototypeof@^1.0.4: version "1.0.5" resolved "https://registry.yarnpkg.com/reflect.getprototypeof/-/reflect.getprototypeof-1.0.5.tgz#e0bd28b597518f16edaf9c0e292c631eb13e0674" @@ -4341,15 +4289,6 @@ sanitize-filename@^1.6.3: dependencies: truncate-utf8-bytes "^1.0.0" -sass@^1.69.5: - version "1.71.1" - resolved "https://registry.yarnpkg.com/sass/-/sass-1.71.1.tgz#dfb09c63ce63f89353777bbd4a88c0a38386ee54" - integrity sha512-wovtnV2PxzteLlfNzbgm1tFXPLoZILYAMJtvoXXkD7/+1uP41eKkIt1ypWq5/q2uT94qHjXehEYfmjKOvjL9sg== - dependencies: - chokidar ">=3.0.0 <4.0.0" - immutable "^4.0.0" - source-map-js ">=0.6.2 <2.0.0" - sax@^1.2.4: version "1.3.0" resolved "https://registry.yarnpkg.com/sax/-/sax-1.3.0.tgz#a5dbe77db3be05c9d1ee7785dbd3ea9de51593d0" @@ -4485,7 +4424,7 @@ sort-package-json@2.8.0: is-plain-obj "^4.1.0" sort-object-keys "^1.1.3" -"source-map-js@>=0.6.2 <2.0.0", source-map-js@^1.0.2: +source-map-js@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.0.2.tgz#adbc361d9c62df380125e7f161f71c826f1e490c" integrity sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==