pralor
4b259a922a
New translations query-log.json (Czech)
...
Signed-off-by: pralor <pralor-bot@pi-hole.net >
2019-02-14 06:09:58 -06:00
pralor
a181c4b7ef
New translations settings.json (Czech)
...
Signed-off-by: pralor <pralor-bot@pi-hole.net >
2019-02-14 06:09:57 -06:00
pralor
183eaa3dbe
New translations api-errors.json (Danish)
...
Signed-off-by: pralor <pralor-bot@pi-hole.net >
2019-02-14 06:09:56 -06:00
pralor
f7f43ad901
New translations common.json (Danish)
...
Signed-off-by: pralor <pralor-bot@pi-hole.net >
2019-02-14 06:09:55 -06:00
pralor
02af5e2390
New translations dashboard.json (Danish)
...
Signed-off-by: pralor <pralor-bot@pi-hole.net >
2019-02-14 06:09:54 -06:00
pralor
55a7cf0073
New translations footer.json (Danish)
...
Signed-off-by: pralor <pralor-bot@pi-hole.net >
2019-02-14 06:09:53 -06:00
pralor
ed4d4685f4
New translations lists.json (Czech)
...
Signed-off-by: pralor <pralor-bot@pi-hole.net >
2019-02-14 06:09:53 -06:00
pralor
09b30d4b86
New translations api-errors.json (Romanian)
...
Signed-off-by: pralor <pralor-bot@pi-hole.net >
2019-02-14 06:09:51 -06:00
Mark Drobnak
70b95b5920
Merge pull request #144 from pi-hole/feature/crowdin
...
Add Crowdin support
2019-02-13 22:55:57 -05:00
Mcat12
48d4312ddb
Add Crowdin support
...
This adds the crowdin.yml config file, and supports their export format.
Specifically, if a string is not translated, Crowdin exports it as an
empty string. The `returnEmptyString` i18next config option handles this
case.
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2019-02-13 18:10:15 -08:00
Mark Drobnak
1d38f01587
Merge pull request #142 from pi-hole/feature/typescript
...
Convert to TypeScript
2019-01-25 00:19:25 -05:00
Mcat12
1a6bc0ae51
Fix language.json import
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2019-01-24 21:15:59 -08:00
Mcat12
7323c4d618
Merge branch 'development' into feature/typescript
2019-01-24 21:12:47 -08:00
Mcat12
e304eae619
Move API type definitions to new api.d.ts file
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2019-01-24 21:08:59 -08:00
Mcat12
3134c8101d
Convert dashboard components to TypeScript
...
Also fixed the format check to use TypeScript files.
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2019-01-24 20:57:51 -08:00
Mcat12
0af3e21ab2
Convert settings components to TypeScript
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2019-01-23 22:06:38 -08:00
Mcat12
dbfd6b6c28
Convert ForgotPassword to Typescript
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2019-01-23 21:01:34 -08:00
Mcat12
35e0c3af7e
Convert the query log to TypeScript
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2019-01-23 20:59:13 -08:00
Mcat12
f9270074a4
Convert the list components to TypeScript
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2019-01-23 20:33:06 -08:00
Mcat12
5e7539bf83
Convert the rest of the common components to TypeScript
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2019-01-23 19:53:13 -08:00
Mcat12
383b6cddbe
Convert some common components to TypeScript
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2019-01-21 18:19:29 -08:00
Mcat12
64a0dd4f60
Convert the Full.js container component
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2019-01-21 17:50:47 -08:00
Mcat12
f2841ff1ab
Convert the util files to TypeScript
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2019-01-21 17:30:32 -08:00
Mark Drobnak
923daa36cf
Merge pull request #140 from pi-hole/tweak/language-list-gen
...
Move language list generation out of update-translations.js
2019-01-21 19:23:37 -05:00
Mcat12
37c9e6a487
Move language list generation out of update-translations.js
...
Also moved the scripts into a new scripts folder.
The language list generation is independent of the parsing we do for
POEditor. This also makes it easier to move to a different translation
service while keeping the languages.json generation.
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2019-01-21 16:21:14 -08:00
Mark Drobnak
9b5ed25e74
Merge pull request #139 from pi-hole/tweak/i18n-language-whitelist
...
Use the generated list of languages to avoid 404 errors
2019-01-21 19:07:45 -05:00
Mcat12
a21eadea1a
Use the generated list of languages to avoid 404 errors
...
If the user's language is detected to be a language not supported (for
example, en-US), then previously it would try to load the translation
files for that language, and fail with 404s. Now it will only use the
language if it is supported (instead of en-US, it will use en because
that is in the list).
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2019-01-21 15:55:41 -08:00
Mark Drobnak
31dee2dd82
Merge pull request #138 from pi-hole/fix/missing-web-endpoint
...
Add web preferences endpoint to fake data
2019-01-21 18:53:38 -05:00
Mcat12
ad1a37d985
Add web preferences endpoint to fake data
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2019-01-21 15:51:33 -08:00
Mcat12
148a24d8a7
Convert the rest of the views to TypeScript
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2019-01-21 11:51:34 -08:00
Mcat12
3512b49960
Convert route.js and some views
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2019-01-20 19:50:04 -08:00
Mcat12
637d5aecab
Convert more top-level js files to typescript
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2019-01-20 17:24:02 -08:00
Mcat12
7010fde8a7
Add TypeScript
...
index.js has been converted to index.tsx.
The build works without errors.
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2019-01-20 16:36:18 -08:00
Mark Drobnak
b5dba58fc6
Merge pull request #137 from pi-hole/feature/language-preference
...
Add language setting to preferences
2019-01-20 18:47:45 -05:00
Mcat12
6cc979c93b
Add language setting to preferences
...
Translations have been updated to support preferences. A new
"preferences" namespace is added.
A new `languages.json` file is generated under `src/` by
`update-translations.js` so the web interface knows what languages are
available.
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2019-01-20 15:45:25 -08:00
Mark Drobnak
ce6f4f6e0c
Merge pull request #136 from pi-hole/fix/unnecessary-refresh-calls
...
WithAPIData: Don't make a request on refresh if we know the answer
2019-01-20 17:56:38 -05:00
Mcat12
91971713eb
WithAPIData: Don't make a request on refresh if we know the answer
...
If a user changes a setting, we send it to the API, and it says the
change was successful, then we should not have to ask the API for the
settings we just saved.
This is the case for status and preferences. When we save those
settings, we can update our local data with the new setting instead of
making a request for it. This changes a "PUT then GET" flow into a
"PUT then update local" flow, which is one less server call.
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2019-01-20 14:55:15 -08:00
Mark Drobnak
9ebaaba190
Merge pull request #135 from pi-hole/feature/web-layout-preferences
...
Add preferences page with web interface layout preference
2019-01-20 17:27:23 -05:00
Mcat12
2af97f830f
Add preferences page with web interface layout preference
...
The boxed layout button in the top right has been removed. The layout
is now controlled by the same option used in the PHP web interface. It
is retrieved when the web interface starts, and can be changed in the
Preferences page.
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2019-01-20 14:21:36 -08:00
Mark Drobnak
fbe513865c
Merge pull request #134 from pi-hole/tweak/tests-directory
...
Move tests into __tests__ folders
2019-01-18 21:40:21 -08:00
Mcat12
02765e7655
Move tests into __tests__ folders
...
`i18n.js` and `validate.js` (plus its tests) were moved into the util
folder.
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2019-01-18 21:37:47 -08:00
Mark Drobnak
a848686a65
Merge pull request #133 from pi-hole/feature/enable-disable
...
Implement enable/disable buttons in the sidebar
2019-01-18 21:31:19 -08:00
Mark Drobnak
7d90c8a0d4
Merge branch 'development' into feature/enable-disable
2019-01-18 21:30:01 -08:00
Mcat12
6199764914
Add support for custom disable times
...
Translations were updated to move "Apply" from settings to common, and
to add a few more necessary strings.
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2019-01-18 21:22:41 -08:00
Mark Drobnak
984e4b1f45
Merge pull request #132 from pi-hole/fix/network-page
...
Fix crash on network page due to incorrect use of input tags
2019-01-18 20:14:11 -08:00
Mcat12
b674d69333
Fix crash on network page due to incorrect use of input tags
...
Input tags should not have children, and should be marked as read-only.
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2019-01-18 20:12:56 -08:00
Mcat12
37c0226c21
Implement basic enable/disable functionality
...
All buttons except for "Custom time" are implemented.
When a status change is requested, no other status changes can happen
until the first is finished. When it is finished, it will refresh the
status to get the latest value.
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2019-01-18 20:08:33 -08:00
Mcat12
9ae1a854ff
Expose the refresh function to StatusContext consumers
...
This will be used to quickly refresh the status when it has been changed
by the EnableDisable component.
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2019-01-18 18:45:08 -08:00
Mcat12
f2fe9d5aa7
Prevent WithAPIData promises from getting orphaned when refreshing
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2019-01-18 18:36:32 -08:00
Mcat12
4764723c36
Move context.js to components/common
...
It exports a component, and is only used by components.
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2019-01-18 18:35:15 -08:00