Compare commits

...

6 Commits

Author SHA1 Message Date
Ben van Hartingsveldt
fce73b1022 Disable S3 2025-09-14 01:27:21 +02:00
Ben van Hartingsveldt
c2b4acf0d2 Add @if 2025-09-14 01:11:40 +02:00
Ben van Hartingsveldt
3d80c493d3 Fix custom homepage 2025-09-14 01:03:28 +02:00
Ben van Hartingsveldt
5896e7b33d Add React alias 2025-09-14 00:43:30 +02:00
Ben van Hartingsveldt
1fb38b8a2c Fix action 2025-09-14 00:34:55 +02:00
Ben van Hartingsveldt
0c2715225b Disable lint 2025-09-14 00:33:40 +02:00
3 changed files with 20 additions and 22 deletions

View File

@@ -2,9 +2,7 @@ name: Node.js CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
lint:
@@ -17,7 +15,7 @@ jobs:
- run: yarn lint
build:
needs: ['lint']
# needs: ['lint']
name: 'build'
strategy:
matrix:
@@ -93,35 +91,35 @@ jobs:
KNOWN_APP_DOMAINS: lbry.tv,lbry.lat,odysee.com
CHANNEL_STAKED_LEVEL_VIDEO_COMMENTS: 0
- uses: actions/upload-artifact@v2.2.4
- uses: actions/upload-artifact@v4
if: |
startsWith(runner.os, 'linux')
with:
name: Linux
path: ./dist/electron/*.*
- uses: actions/upload-artifact@v2.2.4
- uses: actions/upload-artifact@v4
if: |
startsWith(runner.os, 'mac')
with:
name: macOS
path: ./dist/electron/*.*
- uses: actions/upload-artifact@v2.2.4
- uses: actions/upload-artifact@v4
if: |
startsWith(runner.os, 'windows')
with:
name: Windows
path: ./dist/electron/*.*
- uses: jakejarvis/s3-sync-action@master
if: |
startsWith(runner.os, 'linux')
with:
args: --acl public-read --follow-symlinks --exclude '*' --include '*.deb' --include '*.AppImage' --include '*.dmg'
env:
AWS_S3_BUCKET: ${{ secrets.ARTIFACTS_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.ARTIFACTS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.ARTIFACTS_SECRET }}
AWS_REGION: 'us-east-1'
SOURCE_DIR: 'dist/electron'
DEST_DIR: 'app/release'
#- uses: jakejarvis/s3-sync-action@master
# if: |
# startsWith(runner.os, 'linux')
# with:
# args: --acl public-read --follow-symlinks --exclude '*' --include '*.deb' --include '*.AppImage' --include '*.dmg'
# env:
# AWS_S3_BUCKET: ${{ secrets.ARTIFACTS_BUCKET }}
# AWS_ACCESS_KEY_ID: ${{ secrets.ARTIFACTS_KEY }}
# AWS_SECRET_ACCESS_KEY: ${{ secrets.ARTIFACTS_SECRET }}
# AWS_REGION: 'us-east-1'
# SOURCE_DIR: 'dist/electron'
# DEST_DIR: 'app/release'

View File

@@ -6,7 +6,6 @@ import SUPPORTED_LANGUAGES from 'constants/supported_languages';
import { parseURI } from 'util/lbryURI';
import moment from 'moment';
import { toCapitalCase } from 'util/string';
import { CUSTOM_HOMEPAGE } from 'config';
export type RowDataItem = {
title: any,
@@ -167,7 +166,7 @@ export function GetLinksData(
}
// **************************************************************************
// @if CUSTOM_HOMEPAGE='false'
// @if 'true'
/*
const YOUTUBER_CHANNEL_IDS = [
@@ -301,7 +300,7 @@ export function GetLinksData(
},
};
if (isHomepage && !CUSTOM_HOMEPAGE) {
if (isHomepage && true) {
if (followedTags) {
const TRENDING_FOR_TAGS = {
title: __('Trending For Your Tags'),
@@ -336,7 +335,7 @@ export function GetLinksData(
}
}
if (!CUSTOM_HOMEPAGE) {
if (true) {
rowData.push(TOP_CONTENT_TODAY);
if (language !== 'en') {
rowData.push(LANGUAGE_CATEGORY);

View File

@@ -93,6 +93,7 @@ let baseConfig = {
'lodash.isempty': 'lodash-es/isEmpty',
'lodash.forin': 'lodash-es/forIn',
'lodash.clonedeep': 'lodash-es/cloneDeep',
'react/jsx-runtime': 'react/jsx-runtime.js',
...ifProduction({}, { 'react-dom': '@hot-loader/react-dom' }),
},
symlinks: false,