Commit Graph
1299 Commits
Author SHA1 Message Date
dependabot-preview[bot] abb03fe436 Bump react-bootstrap-typeahead from 3.4.5 to 3.4.6
Bumps [react-bootstrap-typeahead](https://github.com/ericgio/react-bootstrap-typeahead) from 3.4.5 to 3.4.6.
- [Release notes](https://github.com/ericgio/react-bootstrap-typeahead/releases)
- [Changelog](https://github.com/ericgio/react-bootstrap-typeahead/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ericgio/react-bootstrap-typeahead/compare/v3.4.5...v3.4.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-14 03:17:21 +00:00
Mark Drobnak 8a60728512 Merge pull request #325 from pi-hole/dependabot/npm_and_yarn/development/fetch-mock-7.3.6
Bump fetch-mock from 7.3.3 to 7.3.6
2019-07-13 23:14:40 -04:00
dependabot-preview[bot] e97468361d Bump fetch-mock from 7.3.3 to 7.3.6
Bumps [fetch-mock](https://github.com/wheresrhys/fetch-mock) from 7.3.3 to 7.3.6.
- [Release notes](https://github.com/wheresrhys/fetch-mock/releases)
- [Commits](https://github.com/wheresrhys/fetch-mock/compare/v7.3.3...v7.3.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-14 03:12:21 +00:00
Mark Drobnak ea6e6afa7b Merge pull request #327 from pi-hole/dependabot/npm_and_yarn/development/reactstrap-8.0.1
Bump reactstrap from 8.0.0 to 8.0.1
2019-07-13 23:09:11 -04:00
dependabot-preview[bot] 96ac863b84 Bump reactstrap from 8.0.0 to 8.0.1
Bumps [reactstrap](https://github.com/reactstrap/reactstrap) from 8.0.0 to 8.0.1.
- [Release notes](https://github.com/reactstrap/reactstrap/releases)
- [Changelog](https://github.com/reactstrap/reactstrap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/reactstrap/reactstrap/compare/8.0.0...8.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-13 18:04:44 +00:00
Mark Drobnak 858446cca4 Merge pull request #326 from pi-hole/dependabot/npm_and_yarn/development/redux-4.0.4
Bump redux from 4.0.1 to 4.0.4
2019-07-13 14:01:50 -04:00
dependabot-preview[bot] cd90299a94 Bump redux from 4.0.1 to 4.0.4
Bumps [redux](https://github.com/reduxjs/redux) from 4.0.1 to 4.0.4.
- [Release notes](https://github.com/reduxjs/redux/releases)
- [Changelog](https://github.com/reduxjs/redux/blob/master/CHANGELOG.md)
- [Commits](https://github.com/reduxjs/redux/compare/v4.0.1...v4.0.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-13 17:56:37 +00:00
Mark Drobnak ffb4ce0c0b Merge pull request #330 from pi-hole/dependabot/npm_and_yarn/development/redux-saga-1.0.5
Bump redux-saga from 1.0.4 to 1.0.5
2019-07-13 13:54:10 -04:00
dependabot-preview[bot] 99b7a789d6 Bump redux-saga from 1.0.4 to 1.0.5
Bumps [redux-saga](https://github.com/redux-saga/redux-saga) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/redux-saga/redux-saga/releases)
- [Changelog](https://github.com/redux-saga/redux-saga/blob/master/CHANGELOG.md)
- [Commits](https://github.com/redux-saga/redux-saga/compare/v1.0.4...v1.0.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-13 17:45:00 +00:00
Mark Drobnak 7097014f2c Merge pull request #328 from pi-hole/dependabot/npm_and_yarn/development/types/enzyme-3.10.2
Bump @types/enzyme from 3.10.1 to 3.10.2
2019-07-13 13:41:50 -04:00
dependabot-preview[bot] 3d96e321d0 Bump @types/enzyme from 3.10.1 to 3.10.2
Bumps [@types/enzyme](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/enzyme) from 3.10.1 to 3.10.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/enzyme)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-13 17:39:35 +00:00
Mark Drobnak ecac8f97b3 Merge pull request #331 from pi-hole/dependabot/npm_and_yarn/development/types/node-12.6.2
Bump @types/node from 12.0.12 to 12.6.2
2019-07-13 13:36:48 -04:00
dependabot-preview[bot] ddee87d242 Bump @types/node from 12.0.12 to 12.6.2
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.0.12 to 12.6.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-13 17:21:33 +00:00
Mark Drobnak 021e79c361 Merge pull request #324 from pi-hole/dependabot/npm_and_yarn/development/typescript-3.5.3
Bump typescript from 3.5.2 to 3.5.3
2019-07-13 13:18:11 -04:00
dependabot-preview[bot] b9ac8b1c54 Bump typescript from 3.5.2 to 3.5.3
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.5.2 to 3.5.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.5.2...v3.5.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-13 10:14:37 +00:00
Mark Drobnak 2d473d640f Merge pull request #321 from pi-hole/dependabot/npm_and_yarn/development/lodash-4.17.14
[Security] Bump lodash from 4.17.11 to 4.17.14
2019-07-11 11:40:55 -04:00
dependabot-preview[bot] 051ce53177 [Security] Bump lodash from 4.17.11 to 4.17.14
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.11 to 4.17.14. **This update includes security fixes.**
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.11...4.17.14)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-10 23:11:58 +00:00
pralor f637ca5523 New Crowdin translations (#291) 2019-07-10 17:23:45 -04:00
Mark Drobnak a2ba62efc6 Merge pull request #320 from pi-hole/dependabot/npm_and_yarn/development/lodash.template-4.5.0
[Security] Bump lodash.template from 4.4.0 to 4.5.0
2019-07-10 17:20:33 -04:00
dependabot-preview[bot] cc9281123b [Security] Bump lodash.template from 4.4.0 to 4.5.0
Bumps [lodash.template](https://github.com/lodash/lodash) from 4.4.0 to 4.5.0. **This update includes security fixes.**
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.4.0...4.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-10 21:12:47 +00:00
Mark Drobnak 9615c260d9 Merge pull request #318 from pi-hole/feature/redux
Add Redux and use it for preferences
2019-07-10 17:08:45 -04:00
Mark Drobnak 87ecf04a1a Merge branch 'development' into feature/redux 2019-07-10 16:38:21 -04:00
Mark Drobnak 119251d397 Merge pull request #307 from pi-hole/feature/auto-login-if-no-password
Auto-login the user if no password is required
2019-07-10 16:23:56 -04:00
Mark Drobnak 2abb318f00 Merge branch 'development' into feature/auto-login-if-no-password 2019-07-10 14:23:41 -04:00
Mark Drobnak a091867c26 Merge pull request #304 from pi-hole/tweak/ClientsGraph-test-coverage
Clients graph test coverage
2019-07-10 14:23:15 -04:00
Mark Drobnak b5193bae07 Merge branch 'development' into tweak/ClientsGraph-test-coverage 2019-07-10 13:43:25 -04:00
Mark Drobnak 3e9a6e03e9 Merge pull request #287 from pi-hole/feature/better-conditional-forwarding
Update conditional forwarding settings to new API
2019-07-10 13:40:55 -04:00
DL6ER e7d0f008c3 Merge branch 'development' into feature/better-conditional-forwarding 2019-07-10 19:12:37 +02:00
Mcat12 eb70e87be1 Restrict the CIDR values to what dnsmasq and the API accepts
The check is not 100% accurate, as it allows > 32 sized CIDRs
for IPv4 addresses, but it is good enough for the frontend checks.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2019-07-06 18:07:33 -07:00
Mcat12 6cf7558757 Tweak the onUpdate preference setting prop
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2019-07-06 15:06:53 -07:00
Mcat12 0d23bf6fb6 Merge branch 'development' into feature/redux
# Conflicts:
#	package.json
2019-07-06 15:00:26 -07:00
Mark Drobnak 02a437d82c Merge pull request #317 from pi-hole/dependabot/npm_and_yarn/development/types/chart.js-2.7.55
Bump @types/chart.js from 2.7.54 to 2.7.55
2019-07-06 17:58:40 -04:00
dependabot-preview[bot] 783aebb838 Bump @types/chart.js from 2.7.54 to 2.7.55
Bumps [@types/chart.js](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chart.js) from 2.7.54 to 2.7.55.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/chart.js)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-06 21:56:23 +00:00
Mark Drobnak f1f46804ef Merge pull request #316 from pi-hole/dependabot/npm_and_yarn/development/types/node-12.0.12
Bump @types/node from 12.0.10 to 12.0.12
2019-07-06 17:53:50 -04:00
dependabot-preview[bot] 5b9a30189c Bump @types/node from 12.0.10 to 12.0.12
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.0.10 to 12.0.12.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-06 21:50:28 +00:00
Mark Drobnak 39cab821db Merge pull request #314 from pi-hole/dependabot/npm_and_yarn/development/types/enzyme-3.10.1
Bump @types/enzyme from 3.9.4 to 3.10.1
2019-07-06 17:48:08 -04:00
dependabot-preview[bot] e63a834d84 Bump @types/enzyme from 3.9.4 to 3.10.1
Bumps [@types/enzyme](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/enzyme) from 3.9.4 to 3.10.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/enzyme)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-06 21:44:37 +00:00
Mark Drobnak 00b81c0fe3 Merge pull request #313 from pi-hole/dependabot/npm_and_yarn/development/types/react-16.8.23
Bump @types/react from 16.8.22 to 16.8.23
2019-07-06 17:38:06 -04:00
dependabot-preview[bot] 6506bd3b00 Bump @types/react from 16.8.22 to 16.8.23
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 16.8.22 to 16.8.23.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-06 21:36:06 +00:00
Mark Drobnak 4e7fe6e160 Merge pull request #315 from pi-hole/dependabot/npm_and_yarn/development/i18next-17.0.6
Bump i18next from 17.0.4 to 17.0.6
2019-07-06 17:29:23 -04:00
dependabot-preview[bot] 0eb0ad7cb5 Bump i18next from 17.0.4 to 17.0.6
Bumps [i18next](https://github.com/i18next/i18next) from 17.0.4 to 17.0.6.
- [Release notes](https://github.com/i18next/i18next/releases)
- [Changelog](https://github.com/i18next/i18next/blob/master/CHANGELOG.md)
- [Commits](https://github.com/i18next/i18next/compare/v17.0.4...v17.0.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-06 21:26:13 +00:00
Mark Drobnak b30b2d4787 Merge pull request #312 from pi-hole/dependabot/npm_and_yarn/development/react-i18next-10.11.4
Bump react-i18next from 10.11.2 to 10.11.4
2019-07-06 17:23:46 -04:00
Mcat12 64380acd43 Convert LayoutApplier into a saga
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2019-07-06 14:16:04 -07:00
Mcat12 ad8fe9b4f2 Move applyLanguage into its own file
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2019-07-06 14:12:21 -07:00
dependabot-preview[bot] ce9dc08663 Bump react-i18next from 10.11.2 to 10.11.4
Bumps [react-i18next](https://github.com/i18next/react-i18next) from 10.11.2 to 10.11.4.
- [Release notes](https://github.com/i18next/react-i18next/releases)
- [Changelog](https://github.com/i18next/react-i18next/blob/master/CHANGELOG.md)
- [Commits](https://github.com/i18next/react-i18next/compare/v10.11.2...v10.11.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-06 10:13:44 +00:00
Mcat12 8993c041cc Remove PreferencesContext in favor of the Redux store
All functionality has been moved to the Redux implementation, including
loading the local preferences when in fakeAPI mode instead of from the
API.

PreferenceSettings has been updated to use Redux instead of
PreferencesContext.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2019-06-30 21:35:36 -07:00
Mcat12 3cd50d21bd Convert LanguageApplier into a saga and add some tests
redux-saga-test-plan is added to help make testing sagas less brittle.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2019-06-30 20:45:14 -07:00
Mcat12 5b83f43e69 Add Redux Saga
Redux Saga provides a clean and testable way to run side effects while
integrating with Redux. It is used now to fetch the preferences data and
store it in the Redux store, and will later be used for more side
effects (like updating the preferences in the API).

The Redux store React provider component is moved to the top level. The
other middleware used in development mode comes from the default
middleware. We are not using `getDefaultMiddleware` because it includes
Redux Thunk, which we do not need (we use Saga instead).

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2019-06-30 18:59:57 -07:00
Mcat12 3a8f3ba5b2 Add Redux and convert LayoutApplier as a test
Added libraries and their usage:
- `redux`: Base Redux capabilities
- `redux-starter-kit`: Cut down on the boilerplate of using Redux
- `react-redux`: Easily connect React components to the Redux store

The preferences in the Redux store are currently only loaded from cache
or the default. Redux Saga will be added in upcoming commits to handle
fetching the preferences from the API.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2019-06-30 15:11:43 -07:00
Mcat12 70831a3d58 Auto-login the user if no password is required
See pi-hole/api#173 for more details.

This implementation refreshes the page if it was started in a logged out
state and it is found that the API doesn't require authentication. It is
explained in more detail in a code comment, but we should look into
Redux to make this and many other things cleaner and more testable.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2019-06-29 21:34:15 -07:00