From 7d9ae0a4eac794271d373ce2ce4f1f9ffe207858 Mon Sep 17 00:00:00 2001 From: Geolffrey Mena Date: Thu, 13 Jun 2024 14:31:16 -0600 Subject: [PATCH] design(fix): improve add collection --- .github/workflows/publish.yml | 1 + package.json | 3 +- src/main/core/helia.mjs | 2 +- src/main/core/hls.js | 3 +- .../core/app/components/Blankslate/index.jsx | 44 ++- .../core/app/components/Catalog/index.jsx | 7 +- .../core/app/components/Catalog/list.jsx | 2 +- .../core/app/components/Catalog/row.jsx | 6 +- .../app/components/CustomButton/index.jsx | 7 +- .../core/app/components/Footer/index.jsx | 2 +- .../core/app/components/Image/index.jsx | 4 +- .../core/app/components/MainLoader/index.jsx | 3 +- .../app/components/PlayerLoader/index.jsx | 2 - .../app/components/PointsLoader/index.jsx | 6 +- .../core/app/components/Poster/index.jsx | 4 +- .../core/app/components/Search/index.jsx | 6 +- src/render/core/app/pages/Home/index.jsx | 6 +- src/render/core/settings.js | 13 +- src/render/css/app/default.scss | 20 - src/render/css/app/layout.scss | 4 +- src/render/css/app/player.queries.scss | 90 ----- src/render/css/app/queries.scss | 371 ------------------ src/render/css/app/queries.web.scss | 369 ----------------- src/render/index.scss | 6 +- src/render/index.web.js | 3 +- src/render/index.web.scss | 5 +- 26 files changed, 74 insertions(+), 915 deletions(-) delete mode 100644 src/render/css/app/player.queries.scss delete mode 100755 src/render/css/app/queries.scss delete mode 100755 src/render/css/app/queries.web.scss diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 998447f46..9151ff4ef 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,6 +5,7 @@ on: branches: - "master" - "v0.3.0" + - "v1.0.0" jobs: release: diff --git a/package.json b/package.json index b0941c9bd..b621b6d2d 100644 --- a/package.json +++ b/package.json @@ -125,7 +125,8 @@ "package:win": "npm run package -- --win --x64 --ia32", "publish:mac": "npm run package:mac -- --publish always", "publish:linux": "npm run package:linux -- --publish always", - "publish:win": "npm run package:win -- --publish always" + "publish:win": "npm run package:win -- --publish always", + "release": "electron-builder --publish always" }, "devDependencies": { "@babel/core": "^7.14.6", diff --git a/src/main/core/helia.mjs b/src/main/core/helia.mjs index 38a808d5a..55068056b 100644 --- a/src/main/core/helia.mjs +++ b/src/main/core/helia.mjs @@ -67,7 +67,7 @@ function getConfig(runtime = "node") { services: { ...defaults.services, pubsub: gossipsub({ - allowPublishToZeroPeers: true, + allowPublishToZeroTopicPeers: true, emitSelf: true, canRelayMessage: true, }), diff --git a/src/main/core/hls.js b/src/main/core/hls.js index a27ab6d09..6fb12cd6d 100644 --- a/src/main/core/hls.js +++ b/src/main/core/hls.js @@ -6,7 +6,8 @@ const log = require('logplease').create('HLS') const CONF = { manifestLoadingMaxRetry: 2, manifestLoadingTimeOut: 5 * 1000, - manifestLoadingRetryDelay: 1000 + manifestLoadingRetryDelay: 1000, + manifestLoadingMaxRetryTimeout: 60 * 1000, } const DEFAULT_PLAYER_CONTROLS = [ diff --git a/src/render/core/app/components/Blankslate/index.jsx b/src/render/core/app/components/Blankslate/index.jsx index dc69c0b11..2efe7cb44 100644 --- a/src/render/core/app/components/Blankslate/index.jsx +++ b/src/render/core/app/components/Blankslate/index.jsx @@ -1,9 +1,9 @@ -import React, { useState} from 'react'; +import React, { useState } from 'react'; import { styled, Box, TextField, Typography, Divider } from '@mui/material'; -import NoCollection from '@render/media/img/layout/movies.png'; import CustomButton from "@components/CustomButton"; import ChannelItem from '@components/ChannelItem'; import CustomScrollbars from "@components/Scroller"; +import Footer from '@components/Footer' import settings from '@settings' export const Wrapper = styled(Box)(() => ({ @@ -11,7 +11,7 @@ export const Wrapper = styled(Box)(() => ({ flexDirection: 'column', justifyContent: 'center', alignItems: 'center', - width: '25rem', + width: '100%', backgroundColor: '#212328', borderRadius: '1rem', boxShadow: 24, @@ -69,30 +69,35 @@ const Blankslate = (props) => { textAlign="center" height="calc(100% - 6rem)" > - - - - Add a new collection. + New collection. - You can find a collection cid in the creator profile. + Find the collection CID in the creator's profile. setCID(e.target.value)} - fullWidth + sx={{ + marginY: 2, + fieldset: { + borderColor: '#eee !important' + }, + 'label,input': { + color: '#eee !important', + } + }} /> - + Connect @@ -108,16 +113,17 @@ const EmptyPage = (props) => { - - + + or - + +