mirror of
https://github.com/RoboSats/robosats.git
synced 2025-09-06 19:44:11 +00:00
Prepare for 0.2.1 patch release
This commit is contained in:
11
.github/workflows/android-build.yml
vendored
11
.github/workflows/android-build.yml
vendored
@ -21,6 +21,7 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: 'Download main.js Artifact'
|
- name: 'Download main.js Artifact'
|
||||||
|
if: inputs.semver == '' # Only if workflow fired from frontend-build.yml
|
||||||
uses: dawidd6/action-download-artifact@v2
|
uses: dawidd6/action-download-artifact@v2
|
||||||
with:
|
with:
|
||||||
workflow: frontend-build.yml
|
workflow: frontend-build.yml
|
||||||
@ -28,6 +29,13 @@ jobs:
|
|||||||
name: mobile-main-js
|
name: mobile-main-js
|
||||||
path: mobile/html/Web.bundle/js/
|
path: mobile/html/Web.bundle/js/
|
||||||
|
|
||||||
|
- name: 'Download main.js Artifact for a release'
|
||||||
|
if: inputs.semver != '' # Only if fired as job in release.yml
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: mobile-main-js
|
||||||
|
path: mobile/html/Web.bundle/js/
|
||||||
|
|
||||||
- name: 'Install npm Dependencies'
|
- name: 'Install npm Dependencies'
|
||||||
run: |
|
run: |
|
||||||
cd mobile
|
cd mobile
|
||||||
@ -71,8 +79,8 @@ jobs:
|
|||||||
path: mobile/android/app/build/outputs/apk/release/app-release.apk
|
path: mobile/android/app/build/outputs/apk/release/app-release.apk
|
||||||
|
|
||||||
- name: 'Upload .apk Debug Artifact (for Pre-release)'
|
- name: 'Upload .apk Debug Artifact (for Pre-release)'
|
||||||
|
if: inputs.semver == '' # Only build debug if this is a pre-release
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
if: inputs.semver != '' # only if this workflow is not called from a push to tag (a Release)
|
|
||||||
with:
|
with:
|
||||||
name: robosats-debug-${{ steps.commit.outputs.short }}.apk
|
name: robosats-debug-${{ steps.commit.outputs.short }}.apk
|
||||||
path: mobile/android/app/build/outputs/apk/debug/app-debug.apk
|
path: mobile/android/app/build/outputs/apk/debug/app-debug.apk
|
||||||
@ -86,6 +94,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
tag_name: android-${{ steps.commit.outputs.short }}
|
tag_name: android-${{ steps.commit.outputs.short }}
|
||||||
release_name: robosats-android-${{ steps.commit.outputs.short }}
|
release_name: robosats-android-${{ steps.commit.outputs.short }}
|
||||||
|
changelog: mobile/CHANGELOG.md
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: true
|
prerelease: true
|
||||||
|
|
||||||
|
18
.github/workflows/client-image.yml
vendored
18
.github/workflows/client-image.yml
vendored
@ -3,6 +3,10 @@ name: Client App Image CI/CD
|
|||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
semver:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
paths: ["frontend", "nodeapp"]
|
paths: ["frontend", "nodeapp"]
|
||||||
@ -10,10 +14,6 @@ on:
|
|||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
paths: ["frontend", "nodeapp"]
|
paths: ["frontend", "nodeapp"]
|
||||||
|
|
||||||
# concurrency:
|
|
||||||
# group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
|
|
||||||
# cancel-in-progress: true
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
push_to_registry:
|
push_to_registry:
|
||||||
name: 'Push Docker image to Docker Hub'
|
name: 'Push Docker image to Docker Hub'
|
||||||
@ -27,6 +27,7 @@ jobs:
|
|||||||
cp -r frontend/static nodeapp/static
|
cp -r frontend/static nodeapp/static
|
||||||
|
|
||||||
- name: 'Download main.js Artifact'
|
- name: 'Download main.js Artifact'
|
||||||
|
if: inputs.semver == '' # Only if workflow fired from frontend-build.yml
|
||||||
uses: dawidd6/action-download-artifact@v2
|
uses: dawidd6/action-download-artifact@v2
|
||||||
with:
|
with:
|
||||||
workflow: frontend-build.yml
|
workflow: frontend-build.yml
|
||||||
@ -34,6 +35,13 @@ jobs:
|
|||||||
name: web-main-js
|
name: web-main-js
|
||||||
path: nodeapp/static/frontend/
|
path: nodeapp/static/frontend/
|
||||||
|
|
||||||
|
- name: 'Download main.js Artifact for a release'
|
||||||
|
if: inputs.semver != '' # Only if fired as job in release.yml
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: web-main-js
|
||||||
|
path: nodeapp/static/frontend/
|
||||||
|
|
||||||
- name: 'Log in to Docker Hub'
|
- name: 'Log in to Docker Hub'
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
@ -50,7 +58,7 @@ jobs:
|
|||||||
type=ref,event=tag
|
type=ref,event=tag
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
type=sha,enable=true,priority=100,prefix=,suffix=,format=short
|
type=sha,enable=true,priority=100,prefix=,suffix=,format=short
|
||||||
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
|
type=raw,value=latest
|
||||||
|
|
||||||
- name: 'Get Commit Hash'
|
- name: 'Get Commit Hash'
|
||||||
id: commit
|
id: commit
|
||||||
|
20
.github/workflows/coordinator-image.yml
vendored
20
.github/workflows/coordinator-image.yml
vendored
@ -3,10 +3,10 @@ name: Coodinator Image CI
|
|||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
inputs:
|
||||||
# concurrency:
|
semver:
|
||||||
# group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
|
required: true
|
||||||
# cancel-in-progress: true
|
type: string
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
push_to_registry:
|
push_to_registry:
|
||||||
@ -16,12 +16,20 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: 'Download main.js Artifact'
|
- name: 'Download main.js Artifact'
|
||||||
|
if: inputs.semver == '' # Only if workflow fired from frontend-build.yml
|
||||||
uses: dawidd6/action-download-artifact@v2
|
uses: dawidd6/action-download-artifact@v2
|
||||||
with:
|
with:
|
||||||
workflow: frontend-build.yml
|
workflow: frontend-build.yml
|
||||||
workflow_conclusion: success
|
workflow_conclusion: success
|
||||||
name: web-main-js
|
name: web-main-js
|
||||||
path: frontend/static/frontend/
|
path: nodeapp/static/frontend/
|
||||||
|
|
||||||
|
- name: 'Download main.js Artifact for a release'
|
||||||
|
if: inputs.semver != '' # Only if fired as job in release.yml
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: web-main-js
|
||||||
|
path: nodeapp/static/frontend/
|
||||||
|
|
||||||
- name: 'Log in to Docker Hub'
|
- name: 'Log in to Docker Hub'
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
@ -39,7 +47,7 @@ jobs:
|
|||||||
type=ref,event=tag
|
type=ref,event=tag
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
type=sha,enable=true,priority=100,prefix=,suffix=,format=short
|
type=sha,enable=true,priority=100,prefix=,suffix=,format=short
|
||||||
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
|
type=raw,value=latest
|
||||||
|
|
||||||
- name: 'Get Commit Hash'
|
- name: 'Get Commit Hash'
|
||||||
id: commit
|
id: commit
|
||||||
|
4
.github/workflows/frontend-build.yml
vendored
4
.github/workflows/frontend-build.yml
vendored
@ -48,12 +48,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd frontend
|
cd frontend
|
||||||
npm run build
|
npm run build
|
||||||
- name: 'Archive Built Results'
|
- name: 'Archive Web Built Results'
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: web-main-js
|
name: web-main-js
|
||||||
path: frontend/static/frontend/main.js
|
path: frontend/static/frontend/main.js
|
||||||
- name: 'Archive Built Results'
|
- name: 'Archive Mobile Built Results'
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: mobile-main-js
|
name: mobile-main-js
|
||||||
|
16
.github/workflows/release.yml
vendored
16
.github/workflows/release.yml
vendored
@ -49,20 +49,24 @@ jobs:
|
|||||||
uses: reckless-satoshi/robosats/.github/workflows/coordinator-image.yml@main
|
uses: reckless-satoshi/robosats/.github/workflows/coordinator-image.yml@main
|
||||||
needs: [django-test, frontend-build]
|
needs: [django-test, frontend-build]
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
with:
|
||||||
|
semver: ${{ needs.check-versions.outputs.semver }}
|
||||||
|
|
||||||
client-image:
|
client-image:
|
||||||
uses: reckless-satoshi/robosats/.github/workflows/client-image.yml@main
|
uses: reckless-satoshi/robosats/.github/workflows/client-image.yml@main
|
||||||
needs: frontend-build
|
needs: frontend-build
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
with:
|
||||||
|
semver: ${{ needs.check-versions.outputs.semver }}
|
||||||
|
|
||||||
android-build:
|
android-build:
|
||||||
uses: reckless-satoshi/robosats/.github/workflows/coordinator-image.yml@main
|
uses: reckless-satoshi/robosats/.github/workflows/android-build.yml@main
|
||||||
needs: frontend-build
|
needs: [frontend-build, check-versions]
|
||||||
with:
|
with:
|
||||||
semver: ${{ needs.check-versions.outputs.semver }}
|
semver: ${{ needs.check-versions.outputs.semver }}
|
||||||
|
|
||||||
release:
|
release:
|
||||||
needs: [check-versions, coordinator-image, client-image] #, android-build]
|
needs: [check-versions, coordinator-image, client-image, android-build]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@ -78,12 +82,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
body: ${{ steps.changelog.outputs.changelog }}
|
body: ${{ steps.changelog.outputs.changelog }}
|
||||||
|
|
||||||
# Upload APK artifact
|
# Upload APK artifact asset
|
||||||
- name: 'Download APK Artifact'
|
- name: 'Download APK Artifact'
|
||||||
uses: dawidd6/action-download-artifact@v2
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
workflow: android-build.yml
|
|
||||||
workflow_conclusion: success
|
|
||||||
name: robosats-${{ needs.check-versions.outputs.semver }}.apk
|
name: robosats-${{ needs.check-versions.outputs.semver }}.apk
|
||||||
path: .
|
path: .
|
||||||
- name: 'Upload APK Asset'
|
- name: 'Upload APK Asset'
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "frontend",
|
"name": "frontend",
|
||||||
"version": "0.2.0",
|
"version": "0.2.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -64,7 +64,9 @@ const BookTable = ({
|
|||||||
const verticalHeightFrame = 6.9075;
|
const verticalHeightFrame = 6.9075;
|
||||||
const verticalHeightRow = 3.25;
|
const verticalHeightRow = 3.25;
|
||||||
const defaultPageSize = Math.max(
|
const defaultPageSize = Math.max(
|
||||||
Math.floor(((fullscreen? fullHeight *0.875:maxHeight) - verticalHeightFrame) / verticalHeightRow),
|
Math.floor(
|
||||||
|
((fullscreen ? fullHeight * 0.875 : maxHeight) - verticalHeightFrame) / verticalHeightRow,
|
||||||
|
),
|
||||||
1,
|
1,
|
||||||
);
|
);
|
||||||
const height = defaultPageSize * verticalHeightRow + verticalHeightFrame;
|
const height = defaultPageSize * verticalHeightRow + verticalHeightFrame;
|
||||||
@ -577,7 +579,7 @@ const BookTable = ({
|
|||||||
return [columns, width * 0.875 + 0.15];
|
return [columns, width * 0.875 + 0.15];
|
||||||
};
|
};
|
||||||
|
|
||||||
const [columns, width] = filteredColumns(fullscreen? fullWidth : maxWidth);
|
const [columns, width] = filteredColumns(fullscreen ? fullWidth : maxWidth);
|
||||||
|
|
||||||
const gridComponents = {
|
const gridComponents = {
|
||||||
NoResultsOverlay: () => (
|
NoResultsOverlay: () => (
|
||||||
@ -586,21 +588,21 @@ const BookTable = ({
|
|||||||
</Stack>
|
</Stack>
|
||||||
),
|
),
|
||||||
Footer: () => (
|
Footer: () => (
|
||||||
<Grid container alignItems="center" direction="row" justifyContent="space-between">
|
<Grid container alignItems='center' direction='row' justifyContent='space-between'>
|
||||||
<Grid item>
|
<Grid item>
|
||||||
<IconButton onClick={() => setFullscreen(!fullscreen)}>
|
<IconButton onClick={() => setFullscreen(!fullscreen)}>
|
||||||
{fullscreen ? <FullscreenExitIcon/> : <FullscreenIcon/>}
|
{fullscreen ? <FullscreenExitIcon /> : <FullscreenIcon />}
|
||||||
</IconButton>
|
</IconButton>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid item>
|
<Grid item>
|
||||||
<GridPagination/>
|
<GridPagination />
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
),
|
),
|
||||||
}
|
};
|
||||||
|
|
||||||
if (!fullscreen){
|
if (!fullscreen) {
|
||||||
return(
|
return (
|
||||||
<Paper style={{ width: `${width}em`, height: `${height}em`, overflow: 'auto' }}>
|
<Paper style={{ width: `${width}em`, height: `${height}em`, overflow: 'auto' }}>
|
||||||
<DataGrid
|
<DataGrid
|
||||||
localeText={localeText}
|
localeText={localeText}
|
||||||
@ -620,16 +622,17 @@ const BookTable = ({
|
|||||||
onRowClick={(params) => history.push('/order/' + params.row.id)} // Whole row is clickable, but the mouse only looks clickly in some places.
|
onRowClick={(params) => history.push('/order/' + params.row.id)} // Whole row is clickable, but the mouse only looks clickly in some places.
|
||||||
/>
|
/>
|
||||||
</Paper>
|
</Paper>
|
||||||
)
|
);
|
||||||
} else {
|
} else {
|
||||||
return(
|
return (
|
||||||
<Dialog open={fullscreen} fullScreen={true}>
|
<Dialog open={fullscreen} fullScreen={true}>
|
||||||
<Paper style={{ width: '100%', height: '100%', overflow: 'auto' }}>
|
<Paper style={{ width: '100%', height: '100%', overflow: 'auto' }}>
|
||||||
<DataGrid
|
<DataGrid
|
||||||
localeText={localeText}
|
localeText={localeText}
|
||||||
rows={orders.filter(
|
rows={orders.filter(
|
||||||
(order) =>
|
(order) =>
|
||||||
(order.type == type || type == null) && (order.currency == currency || currency == 0),
|
(order.type == type || type == null) &&
|
||||||
|
(order.currency == currency || currency == 0),
|
||||||
)}
|
)}
|
||||||
loading={loading}
|
loading={loading}
|
||||||
columns={columns}
|
columns={columns}
|
||||||
@ -644,7 +647,7 @@ const BookTable = ({
|
|||||||
/>
|
/>
|
||||||
</Paper>
|
</Paper>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"major":0,
|
"major":0,
|
||||||
"minor":2,
|
"minor":2,
|
||||||
"patch":0
|
"patch":1
|
||||||
}
|
}
|
Reference in New Issue
Block a user