Skip to content

Commit b5937bd

Browse files
committed
Merge branch 'develop'
2 parents 43fdc7a + 3a0a0f1 commit b5937bd

File tree

140 files changed

+2541
-1764
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+2541
-1764
lines changed

.eslintrc

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,32 @@
1414
"extensions": [".js", ".jsx"]
1515
}],
1616
"react/forbid-prop-types": 1,
17+
"react/destructuring-assignment": 1,
18+
"prefer-destructuring": 1,
1719
"no-underscore-dangle": 0,
1820
"max-len": 0,
1921
"class-methods-use-this": 0,
2022
"no-console": 0,
2123
"react/jsx-no-bind": 0,
2224
"jsx-a11y/no-static-element-interactions": 0,
2325
"react/jsx-no-target-blank": 0,
24-
"no-restricted-syntax": [0, "ForInStatement"]
26+
"no-restricted-syntax": [0, "ForInStatement"],
27+
"jsx-a11y/no-noninteractive-element-interactions": 1,
28+
"jsx-a11y/label-has-for": [
29+
2,
30+
{
31+
"components": [
32+
"Label"
33+
],
34+
"required": {
35+
"every": [
36+
"id"
37+
]
38+
},
39+
"allowChildren": false
40+
}
41+
],
42+
"jsx-a11y/click-events-have-key-events": 1
2543
},
2644
"globals": {
2745
"window": true,

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@ language: node_js
1616

1717
before_script:
1818
- npm install node-sass -g
19-
- npm ci
2019

2120
script:
2221
- npm run lint
23-
- travis_wait npm run build
22+
- travis_wait 30 npm run build
2423

2524
cache: npm
2625

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
<a name="5.0.0-beta.21"></a>
2+
# [5.0.0-beta.21](https://github.com/meetfranz/franz/compare/5.0.0-beta.20...5.0.0-beta.21) (2018-12-11)
3+
4+
### General
5+
6+
* **Translations:** Improved translations. **[A million thanks to the amazing community. 🎉](http://i18n.meetfranz.com/)**
7+
8+
### Features
9+
10+
* **Service:** Add option to change spellchecking language by service ([baf7d60](https://github.com/meetfranz/franz/commit/baf7d60))
11+
* **Context Menu:** Quickly change the spellchecker language for the active service
12+
* **Service:** Add error screen for services that failed to load ([a5e7171](https://github.com/meetfranz/franz/commit/a5e7171))
13+
* **Service:** Add port option for proxy configuration ([baf7d60](https://github.com/meetfranz/franz/commit/baf7d60))
14+
15+
16+
### Bug Fixes
17+
18+
* **Spellchecker:** Fix issue with dictionary download ([0cdc165](https://github.com/meetfranz/franz/commit/0cdc165))
19+
20+
### Improvements
21+
22+
* **Dark Mode:** Dark Mode polishing
23+
* **App:** Updated a ton of dependencies
24+
25+
126
<a name="5.0.0-beta.20"></a>
227
# [5.0.0-beta.20](https://github.com/meetfranz/franz/compare/v5.0.0-beta.19...v5.0.0-beta.20) (2018-12-05)
328

electron-builder.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,5 @@ nsis:
4242
protocols:
4343
name: Franz
4444
schemes: [franz]
45+
46+
asarUnpack: "./dictionaries"

gulpfile.babel.js

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const paths = {
2525
src: 'src',
2626
dest: 'build',
2727
tmp: '.tmp',
28+
dictionaries: 'dictionaries',
2829
package: `out/${config.version}`,
2930
html: {
3031
src: 'src/**/*.html',
@@ -73,15 +74,17 @@ export function mvSrc() {
7374
`${paths.src}/*/**`,
7475
`!${paths.scripts.watch}`,
7576
`!${paths.src}/styles/**`,
76-
], { since: gulp.lastRun(mvSrc) })
77+
], { since: gulp.lastRun(mvSrc) },
78+
)
7779
.pipe(gulp.dest(paths.dest));
7880
}
7981

8082
export function mvPackageJson() {
8183
return gulp.src(
8284
[
8385
'./package.json',
84-
])
86+
],
87+
)
8588
.pipe(gulp.dest(paths.dest));
8689
}
8790

@@ -132,6 +135,21 @@ export function webserver() {
132135
}));
133136
}
134137

138+
export function dictionaries(done) {
139+
const { SPELLCHECKER_LOCALES } = require('./build/i18n/languages');
140+
141+
let packages = '';
142+
Object.keys(SPELLCHECKER_LOCALES).forEach((key) => { packages = `${packages} hunspell-dict-${key}`; });
143+
144+
_shell(`
145+
rm -rf ${paths.dictionaries}
146+
npm install --prefix ${paths.dictionaries} ${packages}
147+
mv ${paths.dictionaries}/node_modules/* ${paths.dictionaries}
148+
rm -rf ${paths.dictionaries}/node_modules ${paths.dictionaries}/package-lock.json
149+
pwd`,
150+
done);
151+
}
152+
135153
export function sign(done) {
136154
_shell(`codesign --verbose=4 --deep --strict --force --sign "${process.env.SIGNING_IDENTITY}" "${__dirname}/node_modules/electron/dist/Electron.app"`, done);
137155
}
@@ -140,6 +158,7 @@ const build = gulp.series(
140158
clean,
141159
gulp.parallel(mvSrc, mvPackageJson),
142160
gulp.parallel(html, scripts, styles),
161+
dictionaries,
143162
);
144163
export { build };
145164

0 commit comments

Comments
 (0)