Compare commits
6 Commits
master
...
refactor-m
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fce73b1022 | ||
|
|
c2b4acf0d2 | ||
|
|
3d80c493d3 | ||
|
|
5896e7b33d | ||
|
|
1fb38b8a2c | ||
|
|
0c2715225b |
34
.github/workflows/deploy.yml
vendored
34
.github/workflows/deploy.yml
vendored
@@ -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'
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user