This commit is contained in:
Timothy Warren 2018-06-01 16:57:36 -04:00
parent 9a7eccb55e
commit bc13bb6205
9 changed files with 50 additions and 8 deletions

1
.gitignore vendored
View File

@ -270,5 +270,6 @@ $RECYCLE.BIN/
## Built files
build/
dist/
public/stats.html
# End of https://www.gitignore.io/api/osx,vim,code,node,linux,emacs,windows,jetbrains+all

BIN
assets/icons/FilmExif.icns Normal file

Binary file not shown.

BIN
assets/icons/FilmExif.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 KiB

28
assets/icons/FilmExif.svg Normal file
View File

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="512px" height="512px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" xml:space="preserve">
<g>
<path d="M271.294,414H40.661c-0.117,1-0.661,1.386-0.661,2.298v13.43C40,440.854,49.497,450,60.622,450H112v5.245
c0,11.126,9.348,20.755,20.474,20.755h47.006c11.126,0,19.52-9.629,19.52-20.755V450h52.332c11.125,0,19.668-9.146,19.668-20.272
v-13.43C271,415.386,271.41,415,271.294,414z"/>
<path d="M251.332,62H199v-5.355C199,45.52,190.606,37,179.48,37h-47.006C121.348,37,112,45.52,112,56.645V62H60.622
C49.497,62,40,71.037,40,82.163v13.43C40,96.504,40.543,98,40.661,99h230.633c0.116-1-0.294-2.496-0.294-3.407v-13.43
C271,71.037,262.457,62,251.332,62z"/>
<rect x="54" y="111" width="145" height="294"/>
<g id="_x23_1e1e1cff">
<path d="M240.522,112.345c76.998-0.063,153.988-0.063,230.976,0c0.018,29.126,0,58.242,0.01,87.359
c-28.85,19.493-57.777,38.868-86.645,58.343c0.063,48.535,0.045,97.082,0.01,145.621c-48.123,0.025-96.246,0.072-144.36-0.02
C240.478,306.547,240.45,209.446,240.522,112.345 M269.424,141.506c-0.1,9.697,0.045,19.384-0.053,29.081
c9.609-0.072,19.221,0.083,28.83-0.045c0.127-9.696-0.027-19.393,0.045-29.09C288.637,141.552,279.035,141.407,269.424,141.506
M327.186,141.516c-0.127,9.697,0.025,19.393-0.047,29.089c9.611-0.1,19.211,0.045,28.822-0.055
c0.1-9.697-0.045-19.393,0.055-29.08C346.404,141.543,336.795,141.388,327.186,141.516 M384.881,141.461
c0.027,9.706,0.018,19.411,0,29.125c9.629,0.009,19.256-0.054,28.885,0.019c-0.072-9.715-0.01-19.429-0.018-29.135
C404.129,141.479,394.51,141.488,384.881,141.461 M269.434,345.461c-0.127,9.695,0.027,19.393-0.045,29.088
c9.602-0.1,19.211,0.047,28.822-0.053c0.1-9.697-0.045-19.393,0.053-29.082C288.654,345.488,279.043,345.334,269.434,345.461
M327.131,345.406c0.025,9.705,0.018,19.41,0,29.125c9.627,0.01,19.256-0.055,28.885,0.018c-0.072-9.715-0.01-19.428-0.02-29.143
C346.369,345.424,336.758,345.432,327.131,345.406z"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@ -1,14 +1,22 @@
{
"name": "film-exif-electron",
"name": "film-exif",
"author": "Timothy J. Warren",
"description": "A cross-platform app to exit exif tags",
"description": "A cross-platform app to edit exif tags",
"version": "0.5.0",
"private": true,
"build": {
"asar": true,
"appId": "net.timshomepage.film-exif",
"asar": false,
"copyright": "Copyright © year ${author}",
"files": [
"src/**/*",
"build/**/*",
"node_modules/**/*"
],
"mac": {
"category": "public.app-category.photography"
"category": "public.app-category.photography",
"icon": "assets/icons/FilmExif.icns",
"identity": null
}
},
"dependencies": {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 295 KiB

View File

@ -4,6 +4,7 @@ import alias from 'rollup-plugin-alias';
import filesize from 'rollup-plugin-filesize';
import livereload from 'rollup-plugin-livereload';
import serve from 'rollup-plugin-serve';
import visualizer from 'rollup-plugin-visualizer';
// Force the appropriate environment
process.env.NODE_ENV = 'development';
@ -26,5 +27,9 @@ export default {
port: 3000,
}),
livereload(),
visualizer({
filename: './public/stats.html',
title: 'Film EXIF modules',
}),
],
};

View File

@ -1,4 +1,4 @@
import _ from 'lodash-es';
import bindAll from 'lodash-es/bindAll';
import { JSONMessage } from '//helpers/web-socket';
export class WSCache {
@ -26,7 +26,7 @@ export class WSCache {
'server-log': [console.dir],
};
_.bindAll(this, [
bindAll(this, [
'onWebSocketClose',
'onWebSocketMessage',
'publish',

View File

@ -1,4 +1,4 @@
import _ from 'lodash-es';
import bindAll from 'lodash-es/bindAll';
import { Component } from 'inferno';
import {
Button,
@ -21,7 +21,7 @@ export class HomeView extends Component {
showModal: false,
};
_.bindAll(this, [
bindAll(this, [
'bindEvents',
'handleDrop',
'showErrorDialog',