Skip to content

Commit

Permalink
Merge pull request #10 from zonayedpca/v0.9.0-beta
Browse files Browse the repository at this point in the history
V0.9.0 beta Release
  • Loading branch information
zonayedpca authored Sep 22, 2019
2 parents f349905 + 08d2437 commit 6123ab7
Show file tree
Hide file tree
Showing 12 changed files with 97 additions and 113 deletions.
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
language: node_js
matrix:
include:
- os: linux
- os: osx
node_js:
- 8
cache:
directories:
- node_modules
env:
- ELECTRON_FORCE_WINDOW_MENU_BAR=true
after_success:
- if [ $TRAVIS_BRANCH == "master" ]; then npm run pack; fi
9 changes: 5 additions & 4 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,18 @@ const WINDOW_URL = isDev()
? 'http://localhost:3000'
: `file://${__dirname}/client/build/index.html`;
const iconName =
process.platform === 'darwin' ? 'iconTemplate.png' : 'windows-icon.png';
process.platform === 'win32' ? 'windows-icon.png' : 'mac-icon.png';
const iconPath = path.join(__dirname, `src/assets/img/${iconName}`);

let mainWindow;
// eslint-disable-next-line no-unused-vars
let tray;

if (process.platform === 'darwin') {
app.dock.hide();
}

app.on('ready', () => {
if (process.platform === 'darwin') {
app.dock.hide();
}
setScreenSize();
mainWindow = new MainWindow(
{
Expand Down
54 changes: 30 additions & 24 deletions client/src/components/Settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import './settings.css';

const Settings = ({ verifyGithubToken, verifyBitlyToken, resetTokens }) => {
return (
<div className="settings">
<div className="settings-area">
<AppBar
position="static"
color="default"
Expand All @@ -34,29 +34,35 @@ const Settings = ({ verifyGithubToken, verifyBitlyToken, resetTokens }) => {
<Typography variant="h6">Settings</Typography>
</Toolbar>
</AppBar>
<div className="content">
<TokenInput
onSubmit={verifyGithubToken}
name="GitHub"
instruction="Generate a personal access token from GitHub. This access token should have the scope to 'Create Gists'"
/>
<TokenInput
onSubmit={verifyBitlyToken}
name="Bitly"
instruction="Genrate a Generic Access token from Bitly"
/>
<div className="aciton">
<button onClick={() => resetTokens()} className="btn-reset">
Reset
</button>
</div>
<div className="privacy">
<p>
<strong>
We don't store any of these keys. Everything is done
locally. Thus your information is kept safe.
</strong>
</p>
<div className="settings">
<div className="content">
<TokenInput
onSubmit={verifyGithubToken}
name="GitHub"
instruction="Generate a personal access token from GitHub. This access token should have the scope to 'Create Gists'"
/>
<TokenInput
onSubmit={verifyBitlyToken}
name="Bitly"
instruction="Genrate a Generic Access token from Bitly"
/>
<div className="aciton">
<button
onClick={() => resetTokens()}
className="btn-reset"
>
Reset
</button>
</div>
<div className="privacy">
<p>
<strong>
We don't store any of these keys. Everything is
done locally. Thus your information is kept
safe.
</strong>
</p>
</div>
</div>
</div>
</div>
Expand Down
14 changes: 10 additions & 4 deletions client/src/components/settings.css
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
.settings .MuiToolbar-regular {
.settings-area .MuiToolbar-regular {
min-height: 48px;
}

.settings .MuiIconButton-root:hover {
.settings-area .MuiIconButton-root:hover {
border-radius: 100%;
}

.settings {
display: flex;
width: 100%;
height: 100vh;
}

.settings .content {
flex: 1;
margin-top: 45px;
padding: 15px;
height: 380px;
overflow-y: scroll;
overflow: auto;
}

.settings .content .btn-reset {
Expand Down
28 changes: 1 addition & 27 deletions electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ mac:

# Windows configuration
win:
icon: 'src/assets/img/windows-icon.png'
icon: 'src/assets/img/icon256x256.png'
target:
- target: 'nsis'
arch:
Expand All @@ -35,29 +35,3 @@ win:
# Config for the windows installer
nsis:
oneClick: false

# Linux configuration
linux:
icon: 'src/assets/img/iconTemplate.png'
target:
- target: 'AppImage'
arch:
- x64
- ia32
- target: 'deb'
arch:
- x64
- ia32
- target: 'rpm'
arch:
- x64
- ia32
- target: 'zip'
arch:
- x64
- ia32
- target: 'tar.gz'
arch:
- x64
- ia32
publish: ['github']
100 changes: 50 additions & 50 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,52 +1,52 @@
{
"name": "devtop",
"version": "0.8.0-beta",
"description": "DevTop - Essential Tools for Developers",
"main": "app.js",
"author": {
"name": "Zonayed Ahmed",
"email": "contact@zonayed.me"
},
"scripts": {
"preinstall": "cd client && yarn install",
"test-client": "npm run test --prefix client -- --watchAll=false",
"test": "npm run test-client",
"client": "npm start --prefix client",
"build": "npm run build --prefix client",
"electron": "nodemon --watch * --exec \"electron .\"",
"start": "concurrently --kill-others \"npm run client\" \"wait-on tcp:3000 && npm run electron\"",
"version:major": "npm version major",
"version:minor": "npm version minor",
"version:patch": "npm version patch",
"pack": "npm run build && electron-builder -p always"
},
"repository": {
"type": "git",
"url": "git+https://github.com/zonayedpca/DevTop.git"
},
"keywords": [
"desktop",
"dev-tools",
"developer-tools",
"essential-dev",
"essential-developer"
],
"license": "ISC",
"bugs": {
"url": "https://github.com/zonayedpca/DevTop/issues"
},
"homepage": "https://github.com/zonayedpca/DevTop#readme",
"devDependencies": {
"concurrently": "^4.1.0",
"electron": "^5.0.2",
"electron-builder": "^21.2.0",
"eslint": "^6.3.0",
"nodemon": "^1.19.1",
"prettier": "1.18.2",
"wait-on": "^3.3.0"
},
"dependencies": {
"auto-launch": "^5.0.5",
"electron-updater": "^4.1.2"
}
"name": "devtop",
"version": "0.9.0-beta",
"description": "DevTop - Essential Tools for Developers",
"main": "app.js",
"author": {
"name": "Zonayed Ahmed",
"email": "contact@zonayed.me"
},
"scripts": {
"preinstall": "cd client && yarn install",
"test-client": "npm run test --prefix client -- --watchAll=false",
"test": "npm run test-client",
"client": "npm start --prefix client",
"build": "npm run build --prefix client",
"electron": "nodemon --watch * --exec \"electron .\"",
"start": "concurrently --kill-others \"npm run client\" \"wait-on tcp:3000 && npm run electron\"",
"version:major": "npm version major",
"version:minor": "npm version minor",
"version:patch": "npm version patch",
"pack": "npm run build && electron-builder -p always"
},
"repository": {
"type": "git",
"url": "git+https://github.com/zonayedpca/DevTop.git"
},
"keywords": [
"desktop",
"dev-tools",
"developer-tools",
"essential-dev",
"essential-developer"
],
"license": "ISC",
"bugs": {
"url": "https://github.com/zonayedpca/DevTop/issues"
},
"homepage": "https://github.com/zonayedpca/DevTop#readme",
"devDependencies": {
"concurrently": "^4.1.0",
"electron": "^5.0.2",
"electron-builder": "^21.2.0",
"eslint": "^6.3.0",
"nodemon": "^1.19.1",
"prettier": "1.18.2",
"wait-on": "^3.3.0"
},
"dependencies": {
"auto-launch": "^5.0.5",
"electron-updater": "^4.1.2"
}
}
Binary file added src/assets/img/icon256x256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/assets/img/iconTemplate.png
Binary file not shown.
Binary file added src/assets/img/mac-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/mac-icon@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/img/windows-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/module/ApplicationTray.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class ApplicationTray extends Tray {
this.mainWindow = mainWindow;
this.on('click', this.onClick.bind(this));
this.on('right-click', this.onRightClick.bind(this));
this.setToolTip('DevTop');
this.setToolTip('DevTop Essentials');
this.autoStart = false;
this.setAutoStart();
}
Expand Down

0 comments on commit 6123ab7

Please sign in to comment.