Commit Graph
1290 Commits
Author SHA1 Message Date
pralor ee3f59efab New translations lists.json (Danish)
Signed-off-by: pralor <36384445+pralor@users.noreply.github.com>
2019-11-05 14:45:04 -08:00
pralor 9f7d918d1e New translations time-ranges.json (Danish)
Signed-off-by: pralor <36384445+pralor@users.noreply.github.com>
2019-11-05 11:46:01 -08:00
pralor d596c741bb New translations common.json (Danish)
Signed-off-by: pralor <36384445+pralor@users.noreply.github.com>
2019-11-05 11:45:59 -08:00
pralor f910546e0f New translations api-errors.json (Danish)
Signed-off-by: pralor <36384445+pralor@users.noreply.github.com>
2019-11-05 11:45:58 -08:00
pralor e34acd32f6 New translations footer.json (Danish)
Signed-off-by: pralor <36384445+pralor@users.noreply.github.com>
2019-11-05 08:49:27 -08:00
pralor 7eac823262 New translations settings.json (Swedish)
Signed-off-by: pralor <36384445+pralor@users.noreply.github.com>
2019-07-23 10:24:50 -07:00
pralor 77fff219c6 New translations dashboard.json (Swedish)
Signed-off-by: pralor <36384445+pralor@users.noreply.github.com>
2019-07-14 07:06:45 -07:00
pralor b8bdd0f43a New translations settings.json (Spanish)
Signed-off-by: pralor <36384445+pralor@users.noreply.github.com>
2019-07-10 18:44:09 -07: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
Mark Drobnak dcb82e8d1b Merge pull request #306 from pi-hole/dependabot/npm_and_yarn/development/ionicons-4.6.1
Bump ionicons from 4.5.8 to 4.6.1
2019-06-29 18:29:47 -04:00
Mark Drobnak 0d8302a455 Merge branch 'development' into dependabot/npm_and_yarn/development/ionicons-4.6.1 2019-06-29 18:27:36 -04:00
Mark Drobnak 7abfce6b79 Merge pull request #305 from pi-hole/dependabot/npm_and_yarn/development/fs-extra-8.1.0
Bump fs-extra from 8.0.1 to 8.1.0
2019-06-29 18:25:49 -04:00
dependabot-preview[bot] 342894302a Bump ionicons from 4.5.8 to 4.6.1
Bumps [ionicons](https://github.com/ionic-team/ionicons) from 4.5.8 to 4.6.1.
- [Release notes](https://github.com/ionic-team/ionicons/releases)
- [Commits](https://github.com/ionic-team/ionicons/compare/v4.5.8...v4.6.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-29 10:15:38 +00:00
dependabot-preview[bot] 69784e3498 Bump fs-extra from 8.0.1 to 8.1.0
Bumps [fs-extra](https://github.com/jprichardson/node-fs-extra) from 8.0.1 to 8.1.0.
- [Release notes](https://github.com/jprichardson/node-fs-extra/releases)
- [Changelog](https://github.com/jprichardson/node-fs-extra/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jprichardson/node-fs-extra/commits/8.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-29 10:14:40 +00:00
Mcat12 74b076843f Add missing dive to Footer test
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2019-06-28 21:39:50 -07:00
Mcat12 18ac8cf526 Bring ClientsGraph up to 100% code coverage
Renamed the API type `ApiClient` to `ApiClientData` to avoid confusing
it with the class of the same name.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2019-06-28 21:39:30 -07:00
Mark Drobnak 20813863d3 Merge pull request #303 from pi-hole/tweak/better-withTranslation-mock
Properly mock withTranslation to wrap the provided component
2019-06-28 13:17:55 -04:00
Mark Drobnak 0f032ca8ef Merge branch 'development' into tweak/better-withTranslation-mock 2019-06-28 11:35:18 -04:00