Skip to content

Commit 583914a

Browse files
committed
Add remove app from list
1 parent b35a7c7 commit 583914a

File tree

5 files changed

+14
-15
lines changed

5 files changed

+14
-15
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ This is a GUI for running React Native commands. It is built with electron so it
88
v0.1.2 is out! Choose your weapon.
99

1010

11-
[<img alt="Mac" src="http://clinsite.com/wp-content/uploads/2017/01/Apple-logo-120x120.png" />](https://drive.google.com/open?id=12GdTnRph5DMrAj5b8Kmntykm0lXbOcT-)
11+
[<img alt="Mac" src="http://clinsite.com/wp-content/uploads/2017/01/Apple-logo-120x120.png" />](https://drive.google.com/open?id=10mNTPIkciCO3VkkUY_HjCLORsRZDc3lJ)
1212
[<img alt="Windows" src="https://upload.wikimedia.org/wikipedia/commons/thumb/3/34/Windows_logo_-_2012_derivative.svg/120px-Windows_logo_-_2012_derivative.svg.png" />](http://google.es)
1313
[<img alt="Linux" src="http://www.linuxscrew.com/wp-content/uploads/2007/11/120px-crystal_128_penguin.png" />](https://drive.google.com/open?id=1F5Luv13r9QkX8MDCqUN1NtyPN3FFHKaQ)
1414

1515
# Screenshots
1616

1717
## Home screen
1818

19-
![Home](https://raw.githubusercontent.com/co2-git/ReactNative/master/assets/screenshots/v0.1.1/Home.png)
19+
![Home](https://raw.githubusercontent.com/co2-git/ReactNative/master/assets/screenshots/v0.1.2/Home.png)
2020

2121
## Init app
2222

app/components/Layout/AppCard.js

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
import React, {PureComponent} from 'react';
33
import {Card, CardHeader, CardActions} from 'material-ui/Card';
44
import path from 'path';
5-
import Chip from 'material-ui/Chip';
5+
import RaisedButton from 'material-ui/RaisedButton';
6+
import CloseIcon from 'material-ui/svg-icons/navigation/close';
67

78
import Animated from '../Base/Animated';
9+
import {closeApp} from '../../redux/actions/appsActions';
810

911
type $AppCardOwnProps = {
1012
app: $App,
@@ -30,15 +32,11 @@ class AppCard extends PureComponent<$AppCardProps> {
3032
showExpandableButton={false}
3133
/>
3234
<CardActions>
33-
{(
34-
this.props.app.info &&
35-
this.props.app.info.dependencies &&
36-
this.props.app.info.dependencies['react-native'] && (
37-
<Chip>
38-
React Native v{this.props.app.info.dependencies['react-native']}
39-
</Chip>
40-
)
41-
)}
35+
<RaisedButton
36+
label="Remove app from list"
37+
icon={<CloseIcon style={{marginTop: -4}} />}
38+
onClick={() => closeApp(this.props.app)}
39+
/>
4240
</CardActions>
4341
</Card>
4442
</Animated>

assets/screenshots/v0.1.2/Home.png

116 KB
Loading

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"build": "bash scripts/build.sh $npm_package_name $npm_package_version",
88
"build:osx": "yarn build darwin",
99
"build:linux": "yarn build linux",
10-
"build:windows": "yarn build win32"
10+
"build:windows": "yarn build win32",
11+
"build:all": "npm-run-parallel build:osx build:linux build:windows"
1112
},
1213
"dependencies": {
1314
"babel-polyfill": "^6.26.0",

scripts/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
APP_NAME="$1"
33
APP_VERSION="$2"
44
PLATFORM=${3:-all}
5-
ELECTRON_VERSION=1.7.0
5+
ELECTRON_VERSION=1.8.4
66

77
electron-packager . $APP_NAME \
88
--electron-version=$ELECTRON_VERSION \
99
--platform=$PLATFORM \
1010
--version=$ELECTRON_VERSION \
1111
--icon=assets/icons/icon \
1212
--out=release/$APP_VERSION \
13-
--ignore=release
13+
--ignore=release \
1414
--ignore=assets/screenshots

0 commit comments

Comments
 (0)