Commit Graph
237 Commits
Author SHA1 Message Date
Mcat12 3fcef9c66e Moved "Regex" from common namespace to location
Also fixed Whitelist's note about wildcards. I plan on making it
possible to whitelist a domain even if it falls under a regex, so I
don't want to change the string if I don't have to.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-06-03 22:36:57 -04:00
Mcat12 cceba15cf3 Merge branch 'development' into feature/regexlist 2018-06-03 22:29:14 -04:00
Mark Drobnak 9e7cfb9038 Merge pull request #29 from pi-hole/tweak/login-internationalization
Internationalize the login page and remove Breadcrumb
2018-06-03 22:26:23 -04:00
Mcat12 e7e6a0815a Load the namespaces lazily
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-06-03 22:21:11 -04:00
Mcat12 cecdf337d3 Update translations
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-06-03 22:10:05 -04:00
Mcat12 67b01d0b30 Internationalize the login page and remove Breadcrumb
Breadcrumb was basically unused since we don't take advantage of making
breadcrumbs.
Also moved the nav items to `route.js`.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-06-03 22:05:25 -04:00
Mcat12 4c2527e512 Convert Wildlist into Regexlist
- Added `placeholder` as a parameter for `DomainInput` (and therefore
`ListPage`
- Added a few new strings to support the new list

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-06-03 17:52:17 -04:00
Mark Drobnak 55b0462f73 Merge pull request #26 from pi-hole/new/internationalization
Internationalization
2018-06-02 22:02:14 -04:00
Mcat12 f98cb54251 Use progress bars in update-translations
Also check for the API token at the start.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-06-02 17:44:03 -04:00
Mcat12 021c08d949 Don't add missing strings to language files
They will be loaded from the default language.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-06-02 13:45:37 -04:00
Mcat12 a141baf99e Update translations
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-06-02 13:38:24 -04:00
Mcat12 d9133cdfc4 Internationalize StatusBadge and fix a missed spot in Sidebar
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-06-02 13:36:51 -04:00
Mcat12 165e922e37 Merge remote-tracking branch 'origin/development' into new/internationalization
# Conflicts:
#	src/components/DomainInput.js
#	src/components/DomainList.js
#	src/components/Sidebar.js
#	src/index.js
2018-06-02 13:14:22 -04:00
Mark Drobnak b9d56cb8d3 Merge pull request #28 from pi-hole/feature/getStatus
Status Badge
2018-06-02 13:02:25 -04:00
Mcat12 359a983ec5 Change StatusBadge text
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-06-02 12:56:41 -04:00
Mcat12 98bdb6ef8d Display the current status in the sidebar (used to be static)
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-06-02 12:54:12 -04:00
Mark Drobnak a4b7365b4f Merge pull request #27 from pi-hole/upload-builds
Upload Builds
2018-06-02 12:52:31 -04:00
Mcat12 7fef510111 Merge remote-tracking branch 'origin/development' into upload-builds 2018-06-02 12:47:52 -04:00
Mark Drobnak e591dce8d5 Merge pull request #22 from pi-hole/new/authentication
Authentication
2018-06-02 12:46:02 -04:00
Mcat12 1bbd379d1b Rename isCollapsed in ForgotPassword to make more sense
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-06-02 12:36:47 -04:00
Mcat12 966bebd32c Check if logged out for POST and DELETE requests
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-06-02 12:24:57 -04:00
Mcat12 f7e701dea0 Merge remote-tracking branch 'origin/development' into new/internationalization
# Conflicts:
#	src/components/QueriesGraph.js
2018-05-27 00:03:23 -04:00
Mark Drobnak 13382ed86e Merge branch 'development' into new/authentication 2018-05-26 23:53:53 -04:00
Mcat12 00aa3602c1 Merge remote-tracking branch 'origin/development' into upload-builds 2018-05-26 23:49:49 -04:00
Mark Drobnak d665251da7 Merge pull request #19 from pi-hole/tweak/api-format
Adjust to improved API format
2018-05-26 23:39:52 -04:00
Mcat12 c14b601b6b Don't make a top level build folder in the uploaded build
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-05-26 23:38:42 -04:00
Mcat12 990ba3d455 Add more semicolons
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-05-26 23:05:00 -04:00
Mcat12 c716773bae Upload builds to ftl.pi-hole.net
On master, the builds have fake data and are configured to be deployed
to web.pi-hole.io. On other branches, they are build without fake data.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-05-26 23:05:00 -04:00
Mcat12 23065fc27b Simplify and fix i18next configuration
The `namespaces` config was supposed to be `ns`. This made it default to
loading the default namespace of `translation`, which didn't exist.

The I18nextProvider was removed and the i18n setup was moved into a
function.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-05-15 16:24:54 -04:00
Mcat12 164db8ce06 Update i18next
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-05-15 16:22:19 -04:00
Mcat12 21bccbbdec Update package-lock.json
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-05-15 13:10:44 -04:00
Mcat12 bc17182b0b Merge branch 'development' into new/internationalization
# Conflicts:
#	package-lock.json
#	package.json
#	src/index.js
#	src/views/Whitelist.js
2018-05-15 13:09:43 -04:00
Dan Schaper 4a55b9eaed Merge pull request #25 from pi-hole/testing-instructions
Fake Data Testing Instructions
2018-05-14 15:42:49 -07:00
Mcat12 d996daff1b Add "Testing With Fake Data" to the readme
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-05-14 18:33:50 -04:00
Mcat12 5f17b6268d Merge branch 'development' into tweak/api-format 2018-05-11 20:56:23 -04:00
Mark Drobnak 078e3eafd2 Merge pull request #20 from pi-hole/tweak/proxy-development
Use the proxy feature to simplify API calls during development
2018-05-11 20:50:47 -04:00
Mcat12 8c2da52178 Translate Footer
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-05-06 17:38:03 -04:00
Mcat12 bcd1c14054 Translate the list pages
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-05-06 17:26:44 -04:00
Mcat12 a22581fdad Translate QueryLog
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-05-06 16:36:48 -04:00
Mcat12 f37bbbd494 Translate Sidebar
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-05-06 16:13:22 -04:00
Mcat12 8b283682ab Translate TopClients
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-05-06 15:59:40 -04:00
Mcat12 acfcbc9d26 Translate TopBlocked
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-05-06 15:56:04 -04:00
Mcat12 3499f72d79 Translate TopDomains
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-05-06 15:52:11 -04:00
Mcat12 d133f650d1 Translate QueriesGraph
Moved static graph data out of the state so that it can get use the `t`
function to translate the strings.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-05-06 15:36:27 -04:00
Mcat12 b255f00a77 Update translations to include new plural form keys
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-05-06 15:01:01 -04:00
Mcat12 18427f4797 Setup i18next
Currently only used in SummaryStats.
Also changed to `json` instead of `key_value_json` for the POEditor
export.
The whole `i18n` directory is now deleted when updating translations,
so that languages which have fallen behind are not kept in the folder.

Plurals are hard. For languages with only two plurals, the singular
is the plain key and the plural has a suffix of `_plural`. For
languages with multiple plurals, such as Arabic, all keys have a
suffix from `_0` to `_5` depending on the type. The update-translations
script has to take this into account. I experimented with the
`simplifyPluralSuffix` option, but it causes languages with only two
forms to have `_0` be the singular and `_1` be the plural, which is not
consistent with the suffixes of other languages (Arabic has a zero form,
which is `_0` and the singular is `_1`).

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-05-06 15:00:33 -04:00
Mcat12 4e958cdccb Update to the latest translations
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-05-05 21:11:20 -04:00
Mcat12 1dee4db857 Add update-translations script
This will update the translations files from POEditor.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-05-05 21:10:42 -04:00
Mcat12 9fd526735d Log the user out when the session lapses
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-05-03 20:14:26 -04:00
Mcat12 c6f8e9bba5 Add some documentation to Login
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-05-02 17:54:23 -04:00