From ce49098da05c4a77d553a5ddeb837f42ad889ed7 Mon Sep 17 00:00:00 2001 From: pedro-mendonca Date: Mon, 28 Oct 2024 11:52:22 +0000 Subject: [PATCH] Add assets minified maps --- assets/css/style.css | 42 ++++++++++++++++++++- assets/css/style.min.css | 4 +- assets/css/style.min.css.map | 1 + assets/js/project.min.js | 3 +- assets/js/project.min.js.map | 1 + assets/js/tools-glossaries.min.js | 3 +- assets/js/tools-glossaries.min.js.map | 1 + assets/js/tools-originals.min.js | 3 +- assets/js/tools-originals.min.js.map | 1 + assets/js/tools-permissions.min.js | 3 +- assets/js/tools-permissions.min.js.map | 1 + assets/js/tools-translation-sets.min.js | 3 +- assets/js/tools-translation-sets.min.js.map | 1 + assets/js/tools-translations.min.js | 3 +- assets/js/tools-translations.min.js.map | 1 + 15 files changed, 61 insertions(+), 10 deletions(-) create mode 100644 assets/css/style.min.css.map create mode 100644 assets/js/project.min.js.map create mode 100644 assets/js/tools-glossaries.min.js.map create mode 100644 assets/js/tools-originals.min.js.map create mode 100644 assets/js/tools-permissions.min.js.map create mode 100644 assets/js/tools-translation-sets.min.js.map create mode 100644 assets/js/tools-translations.min.js.map diff --git a/assets/css/style.css b/assets/css/style.css index bce6bfc..2e2c3bb 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -2,9 +2,11 @@ table.gp-table button { display: inline-block; } + table.gp-table button.hidden { display: none; } + table.gp-table button.delete { padding: 0; border: none; @@ -12,91 +14,114 @@ table.gp-table button.delete { cursor: pointer; color: var(--gp-color-primary-500); } + table.gp-table button.delete:disabled { color: var(--gp-color-btn-disabled-text); cursor: default; } + table.gp-table button.delete span.dashicons { font-size: 1rem; vertical-align: middle; } + table.gp-table div.progress-notice { font-size: 0.75em; font-style: italic; white-space: nowrap; } + table.gp-table td span.unknown { text-align: center; vertical-align: middle; color: var(--gp-color-fg-muted); font-style: italic; } + table.gp-table.gp-toolbox.tools-permission-admin, table.gp-table.gp-toolbox.tools-permission-validator, table.gp-table.gp-toolbox.tools-permission-other, table.gp-table.gp-toolbox.tools-originals, table.gp-table.gp-toolbox.tools-translation-sets, table.gp-table.gp-toolbox.tools-translations, table.gp-table.gp-toolbox.tools-glossaries { width: auto; } + table.gp-table.translation-sets tbody tr td.stats:not(.percent) { background-color: var(--gp-color-secondary-100); } + table.gp-table.translation-sets tbody tr td.stats:not(.percent).highlight a { opacity: 1; } + table.gp-table.translation-sets tbody tr td.stats:not(.percent).highlight.translated { background-color: var(--gp-color-status-current-subtle); } + table.gp-table.translation-sets tbody tr td.stats:not(.percent).highlight.fuzzy { background-color: var(--gp-color-status-fuzzy-subtle); } + table.gp-table.translation-sets tbody tr td.stats:not(.percent).highlight.untranslated { background-color: inherit; } + table.gp-table.translation-sets tbody tr td.stats:not(.percent).highlight.waiting { background-color: var(--gp-color-status-waiting-subtle); } + table.gp-table.translation-sets tbody tr td.stats:not(.percent).highlight.old { background-color: var(--gp-color-status-old-subtle); } + table.gp-table.translation-sets tbody tr td.stats:not(.percent).highlight.rejected { background-color: var(--gp-color-status-rejected-subtle); } + table.gp-table.translation-sets tbody tr td.stats:not(.percent).highlight.changesrequested { background-color: var(--gp-color-status-changesrequested-subtle); } + table.gp-table.translation-sets tbody tr td.stats:not(.percent).highlight.warnings { background-color: inherit; } + table.gp-table.translation-sets tbody tr td.stats.old div.progress-notice, table.gp-table.translation-sets tbody tr td.stats.rejected div.progress-notice, table.gp-table.translation-sets tbody tr td.stats.changesrequested div.progress-notice { font-size: 0.75em; font-style: italic; white-space: nowrap; } + table.gp-table.translation-sets tbody tr td.stats.old a, table.gp-table.translation-sets tbody tr td.stats.old button, table.gp-table.translation-sets tbody tr td.stats.rejected a, table.gp-table.translation-sets tbody tr td.stats.rejected button, table.gp-table.translation-sets tbody tr td.stats.changesrequested a, table.gp-table.translation-sets tbody tr td.stats.changesrequested button { display: inline-block; } + table.gp-table.translation-sets tbody tr td.stats.old a.hidden, table.gp-table.translation-sets tbody tr td.stats.old button.hidden, table.gp-table.translation-sets tbody tr td.stats.rejected a.hidden, table.gp-table.translation-sets tbody tr td.stats.rejected button.hidden, table.gp-table.translation-sets tbody tr td.stats.changesrequested a.hidden, table.gp-table.translation-sets tbody tr td.stats.changesrequested button.hidden { display: none; } + table.gp-table.translation-sets tbody tr td.stats.old a, table.gp-table.translation-sets tbody tr td.stats.rejected a, table.gp-table.translation-sets tbody tr td.stats.changesrequested a { padding: 0 1rem; width: 100%; } + table.gp-table.translation-sets tbody tr td.stats.old button.delete, table.gp-table.translation-sets tbody tr td.stats.rejected button.delete, table.gp-table.translation-sets tbody tr td.stats.changesrequested button.delete { position: absolute; translate: -1rem; } + table.gp-table.tools-permission-validator tr.duplicate { background-color: var(--gp-color-attention-emphasis); } + table.gp-table.tools-permission-validator tr.duplicate td.action span.duplicate { color: var(--gp-color-bubble-inactive-project-text); padding: 0.2em 0.5em; border: 1px solid var(--gp-color-bubble-inactive-project-text); border-radius: 1em; + -webkit-text-decoration: none; text-decoration: none; text-align: center; text-shadow: none; @@ -117,13 +142,17 @@ section.gp-toolbox { div.gp-heading div.gp-toolbox-tools { margin-left: auto; } + div.gp-heading div.gp-toolbox-tools a.gp-toolbox-tool-link { font-size: 1.125rem; font-weight: 600; } + div.gp-heading div.gp-toolbox-tools a.gp-toolbox-tool-link.current { + -webkit-text-decoration: underline; text-decoration: underline; } + div.gp-heading div.gp-toolbox-tools a.gp-toolbox-tool-link.current:hover { text-decoration-thickness: 0.125rem; } @@ -143,12 +172,15 @@ table.gp-toolbox.tools-glossaries td.entries { } table.gp-toolbox.tools-glossaries td.entries a { + -webkit-text-decoration: none; text-decoration: none; color: var(--gp-color-fg-default); font-weight: 600; display: block; } + table.gp-toolbox.tools-glossaries td.entries a:hover, table.gp-toolbox.tools-glossaries td.entries a:focus { + -webkit-text-decoration: underline; text-decoration: underline; text-underline-offset: 0.1em; text-underline-position: under; @@ -164,24 +196,31 @@ table.gp-table tbody th { .gptoolbox-description code { padding: 0 4px; } + .gptoolbox-description span.translation-status.current { background-color: var(--gp-color-status-current-subtle); } + .gptoolbox-description span.translation-status.fuzzy { background-color: var(--gp-color-status-fuzzy-subtle); } + .gptoolbox-description span.translation-status.waiting { background-color: var(--gp-color-status-waiting-subtle); } + .gptoolbox-description span.translation-status.old { background-color: var(--gp-color-status-old-subtle); } + .gptoolbox-description span.translation-status.rejected { background-color: var(--gp-color-status-rejected-subtle); } + .gptoolbox-description span.translation-status.changesrequested { background-color: var(--gp-color-status-changesrequested-subtle); } + .gptoolbox-description code { background-color: var(--gp-color-primary-50); } @@ -190,11 +229,10 @@ ul.gptoolbox-description { list-style: none; padding-left: 0.5rem; } + ul.gptoolbox-description li::before { font-family: dashicons; content: "\f147"; color: var(--gp-color-primary); vertical-align: middle; } - -/*# sourceMappingURL=style.css.map */ diff --git a/assets/css/style.min.css b/assets/css/style.min.css index 051009d..99d9964 100644 --- a/assets/css/style.min.css +++ b/assets/css/style.min.css @@ -1,2 +1,2 @@ -table.gp-table button{display:inline-block}table.gp-table button.hidden{display:none}table.gp-table button.delete{background:none;border:none;color:var(--gp-color-primary-500);cursor:pointer;padding:0}table.gp-table button.delete:disabled{color:var(--gp-color-btn-disabled-text);cursor:default}table.gp-table button.delete span.dashicons{font-size:1rem;vertical-align:middle}table.gp-table div.progress-notice{font-size:.75em;font-style:italic;white-space:nowrap}table.gp-table td span.unknown{color:var(--gp-color-fg-muted);font-style:italic;text-align:center;vertical-align:middle}table.gp-table.gp-toolbox.tools-glossaries,table.gp-table.gp-toolbox.tools-originals,table.gp-table.gp-toolbox.tools-permission-admin,table.gp-table.gp-toolbox.tools-permission-other,table.gp-table.gp-toolbox.tools-permission-validator,table.gp-table.gp-toolbox.tools-translation-sets,table.gp-table.gp-toolbox.tools-translations{width:auto}table.gp-table.translation-sets tbody tr td.stats:not(.percent){background-color:var(--gp-color-secondary-100)}table.gp-table.translation-sets tbody tr td.stats:not(.percent).highlight a{opacity:1}table.gp-table.translation-sets tbody tr td.stats:not(.percent).highlight.translated{background-color:var(--gp-color-status-current-subtle)}table.gp-table.translation-sets tbody tr td.stats:not(.percent).highlight.fuzzy{background-color:var(--gp-color-status-fuzzy-subtle)}table.gp-table.translation-sets tbody tr td.stats:not(.percent).highlight.untranslated{background-color:inherit}table.gp-table.translation-sets tbody tr td.stats:not(.percent).highlight.waiting{background-color:var(--gp-color-status-waiting-subtle)}table.gp-table.translation-sets tbody tr td.stats:not(.percent).highlight.old{background-color:var(--gp-color-status-old-subtle)}table.gp-table.translation-sets tbody tr td.stats:not(.percent).highlight.rejected{background-color:var(--gp-color-status-rejected-subtle)}table.gp-table.translation-sets tbody tr td.stats:not(.percent).highlight.changesrequested{background-color:var(--gp-color-status-changesrequested-subtle)}table.gp-table.translation-sets tbody tr td.stats:not(.percent).highlight.warnings{background-color:inherit}table.gp-table.translation-sets tbody tr td.stats.changesrequested div.progress-notice,table.gp-table.translation-sets tbody tr td.stats.old div.progress-notice,table.gp-table.translation-sets tbody tr td.stats.rejected div.progress-notice{font-size:.75em;font-style:italic;white-space:nowrap}table.gp-table.translation-sets tbody tr td.stats.changesrequested a,table.gp-table.translation-sets tbody tr td.stats.changesrequested button,table.gp-table.translation-sets tbody tr td.stats.old a,table.gp-table.translation-sets tbody tr td.stats.old button,table.gp-table.translation-sets tbody tr td.stats.rejected a,table.gp-table.translation-sets tbody tr td.stats.rejected button{display:inline-block}table.gp-table.translation-sets tbody tr td.stats.changesrequested a.hidden,table.gp-table.translation-sets tbody tr td.stats.changesrequested button.hidden,table.gp-table.translation-sets tbody tr td.stats.old a.hidden,table.gp-table.translation-sets tbody tr td.stats.old button.hidden,table.gp-table.translation-sets tbody tr td.stats.rejected a.hidden,table.gp-table.translation-sets tbody tr td.stats.rejected button.hidden{display:none}table.gp-table.translation-sets tbody tr td.stats.changesrequested a,table.gp-table.translation-sets tbody tr td.stats.old a,table.gp-table.translation-sets tbody tr td.stats.rejected a{padding:0 1rem;width:100%}table.gp-table.translation-sets tbody tr td.stats.changesrequested button.delete,table.gp-table.translation-sets tbody tr td.stats.old button.delete,table.gp-table.translation-sets tbody tr td.stats.rejected button.delete{position:absolute;translate:-1rem}table.gp-table.tools-permission-validator tr.duplicate{background-color:var(--gp-color-attention-emphasis)}table.gp-table.tools-permission-validator tr.duplicate td.action span.duplicate{background-color:#fff;border:1px solid var(--gp-color-bubble-inactive-project-text);border-radius:1em;color:var(--gp-color-bubble-inactive-project-text);font-size:80%;font-weight:500;margin-left:.2rem;padding:.2em .5em;text-align:center;text-decoration:none;text-shadow:none}section.gp-toolbox{margin-top:2rem}.notice.notice-info{background-color:var(--gp-color-primary-50)}div.gp-heading div.gp-toolbox-tools{margin-left:auto}div.gp-heading div.gp-toolbox-tools a.gp-toolbox-tool-link{font-size:1.125rem;font-weight:600}div.gp-heading div.gp-toolbox-tools a.gp-toolbox-tool-link.current{text-decoration:underline}div.gp-heading div.gp-toolbox-tools a.gp-toolbox-tool-link.current:hover{text-decoration-thickness:.125rem}.tablesorter-glotpress .tablesorter-header:not(.sorter-false){padding-left:1em;padding-right:2.5em}table.gp-toolbox.tools-glossaries td.entries,table.gp-toolbox.tools-glossaries td.id:not(.unknown),td.stats{text-align:center}table.gp-toolbox.tools-glossaries td.entries a{color:var(--gp-color-fg-default);display:block;font-weight:600;text-decoration:none}table.gp-toolbox.tools-glossaries td.entries a:focus,table.gp-toolbox.tools-glossaries td.entries a:hover{text-decoration:underline;text-decoration-thickness:.125rem;text-underline-offset:.1em;text-underline-position:under}table.gp-table tbody td,table.gp-table tbody th{padding:.5em 2em}.gptoolbox-description code,.gptoolbox-description span.translation-status{padding:0 4px}.gptoolbox-description span.translation-status.current{background-color:var(--gp-color-status-current-subtle)}.gptoolbox-description span.translation-status.fuzzy{background-color:var(--gp-color-status-fuzzy-subtle)}.gptoolbox-description span.translation-status.waiting{background-color:var(--gp-color-status-waiting-subtle)}.gptoolbox-description span.translation-status.old{background-color:var(--gp-color-status-old-subtle)}.gptoolbox-description span.translation-status.rejected{background-color:var(--gp-color-status-rejected-subtle)}.gptoolbox-description span.translation-status.changesrequested{background-color:var(--gp-color-status-changesrequested-subtle)}.gptoolbox-description code{background-color:var(--gp-color-primary-50)}ul.gptoolbox-description{list-style:none;padding-left:.5rem}ul.gptoolbox-description li:before{color:var(--gp-color-primary);content:"\f147";font-family:dashicons;vertical-align:middle} -/*# sourceMappingURL=assets\css\style.css.map */ \ No newline at end of file +table.gp-table button{display:inline-block}table.gp-table button.hidden{display:none}table.gp-table button.delete{background:none;border:none;color:var(--gp-color-primary-500);cursor:pointer;padding:0}table.gp-table button.delete:disabled{color:var(--gp-color-btn-disabled-text);cursor:default}table.gp-table button.delete span.dashicons{font-size:1rem;vertical-align:middle}table.gp-table div.progress-notice{font-size:.75em;font-style:italic;white-space:nowrap}table.gp-table td span.unknown{color:var(--gp-color-fg-muted);font-style:italic;text-align:center;vertical-align:middle}table.gp-table.gp-toolbox.tools-glossaries,table.gp-table.gp-toolbox.tools-originals,table.gp-table.gp-toolbox.tools-permission-admin,table.gp-table.gp-toolbox.tools-permission-other,table.gp-table.gp-toolbox.tools-permission-validator,table.gp-table.gp-toolbox.tools-translation-sets,table.gp-table.gp-toolbox.tools-translations{width:auto}table.gp-table.translation-sets tbody tr td.stats:not(.percent){background-color:var(--gp-color-secondary-100)}table.gp-table.translation-sets tbody tr td.stats:not(.percent).highlight a{opacity:1}table.gp-table.translation-sets tbody tr td.stats:not(.percent).highlight.translated{background-color:var(--gp-color-status-current-subtle)}table.gp-table.translation-sets tbody tr td.stats:not(.percent).highlight.fuzzy{background-color:var(--gp-color-status-fuzzy-subtle)}table.gp-table.translation-sets tbody tr td.stats:not(.percent).highlight.untranslated{background-color:inherit}table.gp-table.translation-sets tbody tr td.stats:not(.percent).highlight.waiting{background-color:var(--gp-color-status-waiting-subtle)}table.gp-table.translation-sets tbody tr td.stats:not(.percent).highlight.old{background-color:var(--gp-color-status-old-subtle)}table.gp-table.translation-sets tbody tr td.stats:not(.percent).highlight.rejected{background-color:var(--gp-color-status-rejected-subtle)}table.gp-table.translation-sets tbody tr td.stats:not(.percent).highlight.changesrequested{background-color:var(--gp-color-status-changesrequested-subtle)}table.gp-table.translation-sets tbody tr td.stats:not(.percent).highlight.warnings{background-color:inherit}table.gp-table.translation-sets tbody tr td.stats.changesrequested div.progress-notice,table.gp-table.translation-sets tbody tr td.stats.old div.progress-notice,table.gp-table.translation-sets tbody tr td.stats.rejected div.progress-notice{font-size:.75em;font-style:italic;white-space:nowrap}table.gp-table.translation-sets tbody tr td.stats.changesrequested a,table.gp-table.translation-sets tbody tr td.stats.changesrequested button,table.gp-table.translation-sets tbody tr td.stats.old a,table.gp-table.translation-sets tbody tr td.stats.old button,table.gp-table.translation-sets tbody tr td.stats.rejected a,table.gp-table.translation-sets tbody tr td.stats.rejected button{display:inline-block}table.gp-table.translation-sets tbody tr td.stats.changesrequested a.hidden,table.gp-table.translation-sets tbody tr td.stats.changesrequested button.hidden,table.gp-table.translation-sets tbody tr td.stats.old a.hidden,table.gp-table.translation-sets tbody tr td.stats.old button.hidden,table.gp-table.translation-sets tbody tr td.stats.rejected a.hidden,table.gp-table.translation-sets tbody tr td.stats.rejected button.hidden{display:none}table.gp-table.translation-sets tbody tr td.stats.changesrequested a,table.gp-table.translation-sets tbody tr td.stats.old a,table.gp-table.translation-sets tbody tr td.stats.rejected a{padding:0 1rem;width:100%}table.gp-table.translation-sets tbody tr td.stats.changesrequested button.delete,table.gp-table.translation-sets tbody tr td.stats.old button.delete,table.gp-table.translation-sets tbody tr td.stats.rejected button.delete{position:absolute;translate:-1rem}table.gp-table.tools-permission-validator tr.duplicate{background-color:var(--gp-color-attention-emphasis)}table.gp-table.tools-permission-validator tr.duplicate td.action span.duplicate{background-color:#fff;border:1px solid var(--gp-color-bubble-inactive-project-text);border-radius:1em;color:var(--gp-color-bubble-inactive-project-text);font-size:80%;font-weight:500;margin-left:.2rem;padding:.2em .5em;text-align:center;-webkit-text-decoration:none;text-decoration:none;text-shadow:none}section.gp-toolbox{margin-top:2rem}.notice.notice-info{background-color:var(--gp-color-primary-50)}div.gp-heading div.gp-toolbox-tools{margin-left:auto}div.gp-heading div.gp-toolbox-tools a.gp-toolbox-tool-link{font-size:1.125rem;font-weight:600}div.gp-heading div.gp-toolbox-tools a.gp-toolbox-tool-link.current{-webkit-text-decoration:underline;text-decoration:underline}div.gp-heading div.gp-toolbox-tools a.gp-toolbox-tool-link.current:hover{text-decoration-thickness:.125rem}.tablesorter-glotpress .tablesorter-header:not(.sorter-false){padding-left:1em;padding-right:2.5em}table.gp-toolbox.tools-glossaries td.entries,table.gp-toolbox.tools-glossaries td.id:not(.unknown),td.stats{text-align:center}table.gp-toolbox.tools-glossaries td.entries a{color:var(--gp-color-fg-default);display:block;font-weight:600;-webkit-text-decoration:none;text-decoration:none}table.gp-toolbox.tools-glossaries td.entries a:focus,table.gp-toolbox.tools-glossaries td.entries a:hover{-webkit-text-decoration:underline;text-decoration:underline;text-decoration-thickness:.125rem;text-underline-offset:.1em;text-underline-position:under}table.gp-table tbody td,table.gp-table tbody th{padding:.5em 2em}.gptoolbox-description code,.gptoolbox-description span.translation-status{padding:0 4px}.gptoolbox-description span.translation-status.current{background-color:var(--gp-color-status-current-subtle)}.gptoolbox-description span.translation-status.fuzzy{background-color:var(--gp-color-status-fuzzy-subtle)}.gptoolbox-description span.translation-status.waiting{background-color:var(--gp-color-status-waiting-subtle)}.gptoolbox-description span.translation-status.old{background-color:var(--gp-color-status-old-subtle)}.gptoolbox-description span.translation-status.rejected{background-color:var(--gp-color-status-rejected-subtle)}.gptoolbox-description span.translation-status.changesrequested{background-color:var(--gp-color-status-changesrequested-subtle)}.gptoolbox-description code{background-color:var(--gp-color-primary-50)}ul.gptoolbox-description{list-style:none;padding-left:.5rem}ul.gptoolbox-description li:before{color:var(--gp-color-primary);content:"\f147";font-family:dashicons;vertical-align:middle} +/*# sourceMappingURL=style.min.css.map */ \ No newline at end of file diff --git a/assets/css/style.min.css.map b/assets/css/style.min.css.map new file mode 100644 index 0000000..3491745 --- /dev/null +++ b/assets/css/style.min.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["style.css"],"names":[],"mappings":"AACA,sBACE,oBACF,CAEA,6BACE,YACF,CAEA,6BAGE,eAAgB,CADhB,WAAY,CAGZ,iCAAkC,CADlC,cAAe,CAHf,SAKF,CAEA,sCACE,uCAAwC,CACxC,cACF,CAEA,4CACE,cAAe,CACf,qBACF,CAEA,mCACE,eAAiB,CACjB,iBAAkB,CAClB,kBACF,CAEA,+BAGE,8BAA+B,CAC/B,iBAAkB,CAHlB,iBAAkB,CAClB,qBAGF,CAEA,0UACE,UACF,CAEA,gEACE,8CACF,CAEA,4EACE,SACF,CAEA,qFACE,sDACF,CAEA,gFACE,oDACF,CAEA,uFACE,wBACF,CAEA,kFACE,sDACF,CAEA,8EACE,kDACF,CAEA,mFACE,uDACF,CAEA,2FACE,+DACF,CAEA,mFACE,wBACF,CAEA,gPACE,eAAiB,CACjB,iBAAkB,CAClB,kBACF,CAEA,mYAIE,oBACF,CAEA,6aAIE,YACF,CAEA,0LACE,cAAe,CACf,UACF,CAEA,8NACE,iBAAkB,CAClB,eACF,CAEA,uDACE,mDACF,CAEA,gFAYE,qBAAsB,CATtB,6DAA8D,CAC9D,iBAAkB,CAHlB,kDAAmD,CAUnD,aAAc,CADd,eAAgB,CADhB,iBAAmB,CAPnB,iBAAoB,CAKpB,iBAAkB,CAFlB,4BAA6B,CAC7B,oBAAqB,CAErB,gBAKF,CAEA,mBACE,eACF,CAEA,oBACE,2CACF,CAEA,oCACE,gBACF,CAEA,2DACE,kBAAmB,CACnB,eACF,CAEA,mEACE,iCAAkC,CAClC,yBACF,CAEA,yEACE,iCACF,CAEA,8DAEE,gBAAiB,CADjB,mBAEF,CAMA,4GAEE,iBACF,CAEA,+CAGE,gCAAiC,CAEjC,aAAc,CADd,eAAgB,CAHhB,4BAA6B,CAC7B,oBAIF,CAEA,0GACE,iCAAkC,CAClC,yBAA0B,CAG1B,iCAAmC,CAFnC,0BAA4B,CAC5B,6BAEF,CAEA,gDAEE,gBACF,CAEA,2EAEE,aACF,CAEA,uDACE,sDACF,CAEA,qDACE,oDACF,CAEA,uDACE,sDACF,CAEA,mDACE,kDACF,CAEA,wDACE,uDACF,CAEA,gEACE,+DACF,CAEA,4BACE,2CACF,CAEA,yBACE,eAAgB,CAChB,kBACF,CAEA,mCAGE,6BAA8B,CAD9B,eAAgB,CADhB,qBAAsB,CAGtB,qBACF","file":"style.min.css","sourcesContent":["/* CSS for GP-Toolbox. */\ntable.gp-table button {\n display: inline-block;\n}\n\ntable.gp-table button.hidden {\n display: none;\n}\n\ntable.gp-table button.delete {\n padding: 0;\n border: none;\n background: none;\n cursor: pointer;\n color: var(--gp-color-primary-500);\n}\n\ntable.gp-table button.delete:disabled {\n color: var(--gp-color-btn-disabled-text);\n cursor: default;\n}\n\ntable.gp-table button.delete span.dashicons {\n font-size: 1rem;\n vertical-align: middle;\n}\n\ntable.gp-table div.progress-notice {\n font-size: 0.75em;\n font-style: italic;\n white-space: nowrap;\n}\n\ntable.gp-table td span.unknown {\n text-align: center;\n vertical-align: middle;\n color: var(--gp-color-fg-muted);\n font-style: italic;\n}\n\ntable.gp-table.gp-toolbox.tools-permission-admin, table.gp-table.gp-toolbox.tools-permission-validator, table.gp-table.gp-toolbox.tools-permission-other, table.gp-table.gp-toolbox.tools-originals, table.gp-table.gp-toolbox.tools-translation-sets, table.gp-table.gp-toolbox.tools-translations, table.gp-table.gp-toolbox.tools-glossaries {\n width: auto;\n}\n\ntable.gp-table.translation-sets tbody tr td.stats:not(.percent) {\n background-color: var(--gp-color-secondary-100);\n}\n\ntable.gp-table.translation-sets tbody tr td.stats:not(.percent).highlight a {\n opacity: 1;\n}\n\ntable.gp-table.translation-sets tbody tr td.stats:not(.percent).highlight.translated {\n background-color: var(--gp-color-status-current-subtle);\n}\n\ntable.gp-table.translation-sets tbody tr td.stats:not(.percent).highlight.fuzzy {\n background-color: var(--gp-color-status-fuzzy-subtle);\n}\n\ntable.gp-table.translation-sets tbody tr td.stats:not(.percent).highlight.untranslated {\n background-color: inherit;\n}\n\ntable.gp-table.translation-sets tbody tr td.stats:not(.percent).highlight.waiting {\n background-color: var(--gp-color-status-waiting-subtle);\n}\n\ntable.gp-table.translation-sets tbody tr td.stats:not(.percent).highlight.old {\n background-color: var(--gp-color-status-old-subtle);\n}\n\ntable.gp-table.translation-sets tbody tr td.stats:not(.percent).highlight.rejected {\n background-color: var(--gp-color-status-rejected-subtle);\n}\n\ntable.gp-table.translation-sets tbody tr td.stats:not(.percent).highlight.changesrequested {\n background-color: var(--gp-color-status-changesrequested-subtle);\n}\n\ntable.gp-table.translation-sets tbody tr td.stats:not(.percent).highlight.warnings {\n background-color: inherit;\n}\n\ntable.gp-table.translation-sets tbody tr td.stats.old div.progress-notice, table.gp-table.translation-sets tbody tr td.stats.rejected div.progress-notice, table.gp-table.translation-sets tbody tr td.stats.changesrequested div.progress-notice {\n font-size: 0.75em;\n font-style: italic;\n white-space: nowrap;\n}\n\ntable.gp-table.translation-sets tbody tr td.stats.old a,\ntable.gp-table.translation-sets tbody tr td.stats.old button, table.gp-table.translation-sets tbody tr td.stats.rejected a,\ntable.gp-table.translation-sets tbody tr td.stats.rejected button, table.gp-table.translation-sets tbody tr td.stats.changesrequested a,\ntable.gp-table.translation-sets tbody tr td.stats.changesrequested button {\n display: inline-block;\n}\n\ntable.gp-table.translation-sets tbody tr td.stats.old a.hidden,\ntable.gp-table.translation-sets tbody tr td.stats.old button.hidden, table.gp-table.translation-sets tbody tr td.stats.rejected a.hidden,\ntable.gp-table.translation-sets tbody tr td.stats.rejected button.hidden, table.gp-table.translation-sets tbody tr td.stats.changesrequested a.hidden,\ntable.gp-table.translation-sets tbody tr td.stats.changesrequested button.hidden {\n display: none;\n}\n\ntable.gp-table.translation-sets tbody tr td.stats.old a, table.gp-table.translation-sets tbody tr td.stats.rejected a, table.gp-table.translation-sets tbody tr td.stats.changesrequested a {\n padding: 0 1rem;\n width: 100%;\n}\n\ntable.gp-table.translation-sets tbody tr td.stats.old button.delete, table.gp-table.translation-sets tbody tr td.stats.rejected button.delete, table.gp-table.translation-sets tbody tr td.stats.changesrequested button.delete {\n position: absolute;\n translate: -1rem;\n}\n\ntable.gp-table.tools-permission-validator tr.duplicate {\n background-color: var(--gp-color-attention-emphasis);\n}\n\ntable.gp-table.tools-permission-validator tr.duplicate td.action span.duplicate {\n color: var(--gp-color-bubble-inactive-project-text);\n padding: 0.2em 0.5em;\n border: 1px solid var(--gp-color-bubble-inactive-project-text);\n border-radius: 1em;\n -webkit-text-decoration: none;\n text-decoration: none;\n text-align: center;\n text-shadow: none;\n margin-left: 0.2rem;\n font-weight: 500;\n font-size: 80%;\n background-color: #fff;\n}\n\nsection.gp-toolbox {\n margin-top: 2rem;\n}\n\n.notice.notice-info {\n background-color: var(--gp-color-primary-50);\n}\n\ndiv.gp-heading div.gp-toolbox-tools {\n margin-left: auto;\n}\n\ndiv.gp-heading div.gp-toolbox-tools a.gp-toolbox-tool-link {\n font-size: 1.125rem;\n font-weight: 600;\n}\n\ndiv.gp-heading div.gp-toolbox-tools a.gp-toolbox-tool-link.current {\n -webkit-text-decoration: underline;\n text-decoration: underline;\n}\n\ndiv.gp-heading div.gp-toolbox-tools a.gp-toolbox-tool-link.current:hover {\n text-decoration-thickness: 0.125rem;\n}\n\n.tablesorter-glotpress .tablesorter-header:not(.sorter-false) {\n padding-right: 2.5em;\n padding-left: 1em;\n}\n\ntd.stats {\n text-align: center;\n}\n\ntable.gp-toolbox.tools-glossaries td.id:not(.unknown),\ntable.gp-toolbox.tools-glossaries td.entries {\n text-align: center;\n}\n\ntable.gp-toolbox.tools-glossaries td.entries a {\n -webkit-text-decoration: none;\n text-decoration: none;\n color: var(--gp-color-fg-default);\n font-weight: 600;\n display: block;\n}\n\ntable.gp-toolbox.tools-glossaries td.entries a:hover, table.gp-toolbox.tools-glossaries td.entries a:focus {\n -webkit-text-decoration: underline;\n text-decoration: underline;\n text-underline-offset: 0.1em;\n text-underline-position: under;\n text-decoration-thickness: 0.125rem;\n}\n\ntable.gp-table tbody td,\ntable.gp-table tbody th {\n padding: 0.5em 2em;\n}\n\n.gptoolbox-description span.translation-status,\n.gptoolbox-description code {\n padding: 0 4px;\n}\n\n.gptoolbox-description span.translation-status.current {\n background-color: var(--gp-color-status-current-subtle);\n}\n\n.gptoolbox-description span.translation-status.fuzzy {\n background-color: var(--gp-color-status-fuzzy-subtle);\n}\n\n.gptoolbox-description span.translation-status.waiting {\n background-color: var(--gp-color-status-waiting-subtle);\n}\n\n.gptoolbox-description span.translation-status.old {\n background-color: var(--gp-color-status-old-subtle);\n}\n\n.gptoolbox-description span.translation-status.rejected {\n background-color: var(--gp-color-status-rejected-subtle);\n}\n\n.gptoolbox-description span.translation-status.changesrequested {\n background-color: var(--gp-color-status-changesrequested-subtle);\n}\n\n.gptoolbox-description code {\n background-color: var(--gp-color-primary-50);\n}\n\nul.gptoolbox-description {\n list-style: none;\n padding-left: 0.5rem;\n}\n\nul.gptoolbox-description li::before {\n font-family: dashicons;\n content: \"\\f147\";\n color: var(--gp-color-primary);\n vertical-align: middle;\n}\n"]} \ No newline at end of file diff --git a/assets/js/project.min.js b/assets/js/project.min.js index 63e7bdc..d39f45e 100644 --- a/assets/js/project.min.js +++ b/assets/js/project.min.js @@ -1 +1,2 @@ -jQuery(document).ready(function($){var userLocale=gpToolbox.user_locale,supportedTranslationStatuses=gpToolbox.supported_statuses,tableTranslationSets=$("table.gp-table.translation-sets"),glotpressAdmin=gpToolbox.admin,gpUrlProject=gpToolbox.gp_url_project,project=gpToolbox.args.project,dataPrefix="gptoolboxdata-",highlightCounts=!1;function updateHighlight(element){!1!==highlightCounts&&(element?"0"===$(element).find("a").text()?$(element).removeClass("highlight"):$(element).addClass("highlight"):$(tableTranslationSets).find("td.stats").each(function(){"0"===$(this).find("a").text()?($(this).removeClass("highlight"),$(this).find("button.delete").hide().attr("disabled",!0)):$(this).addClass("highlight")}))}function translationsBulkDelete(locale,slug,status){var td=$(tableTranslationSets).find('tbody tr[gptoolboxdata-locale="'+locale+'"]['+dataPrefix+'slug="'+slug+'"] td.stats.'+status),notice=$(td).find("div.progress-notice"),stats=$(td).find("a.count"),button=$(td).find("button.delete");$(stats).hide(),$(button).hide().attr("disabled",!0),$(notice).text(wp.i18n.__("Deleting...","gp-toolbox")).fadeIn(),$.ajax({url:wpApiSettings.root+"gp-toolbox/v1/translations/"+project.path+"/"+locale+"/"+slug+"/"+status+"/-delete",type:"POST",data:{_wpnonce:gpToolbox.nonce},success:function(response){var count=null;"old"===status?count=response.stats.old:"rejected"===status&&(count=response.stats.rejected),$(stats).text(new Intl.NumberFormat(userLocale.slug).format(count)),$(td).attr("data-text",count),updateHighlight(td)},error:function(response){},complete:function(){$(notice).hide().text(""),$(stats).fadeIn()}})}"1"===gpToolbox.highlight_counts&&(highlightCounts=!0),tableTranslationSets.length&&(supportedTranslationStatuses.hasOwnProperty("old")&&$(tableTranslationSets).children("thead").children("tr").find("th:last").after(''+wp.i18n.__("Old","gp-toolbox")+""),supportedTranslationStatuses.hasOwnProperty("rejected")&&$(tableTranslationSets).children("thead").children("tr").find("th:last").after(''+wp.i18n.__("Rejected","gp-toolbox")+""),supportedTranslationStatuses.hasOwnProperty("changesrequested")&&$(tableTranslationSets).children("thead").children("tr").find("th:last").after(''+wp.i18n.__("Changes requested","gp-toolbox")+""),$(tableTranslationSets).children("thead").children("tr").find("th:last").after(''+wp.i18n.__("Warnings","gp-toolbox")+""),$(tableTranslationSets).children("tbody").children("tr").each(function(){supportedTranslationStatuses.hasOwnProperty("old")&&$(this).find("td:last").after(''),supportedTranslationStatuses.hasOwnProperty("rejected")&&$(this).find("td:last").after(''),supportedTranslationStatuses.hasOwnProperty("changesrequested")&&$(this).find("td:last").after(''),$(this).find("td:last").after(''),$(this).children("td:first-child").find("a").each(function(){var regexPattern=new RegExp("^"+gpUrlProject+".*"+project.path+"/(.*)/(.*)/$"),regexPattern=$(this).attr("href").match(regexPattern),locale=regexPattern[1],regexPattern=regexPattern[2];$(this).closest("tr").attr(dataPrefix+"locale",locale),$(this).closest("tr").attr(dataPrefix+"slug",regexPattern),$(this).closest("tr").attr(dataPrefix+"projectpath",project.path)})}),$(tableTranslationSets).children("tbody").children("tr").each(function(){var locale=$(this).attr("gptoolboxdata-locale"),translationSet=gpToolbox.args.translation_sets[locale],locale=$(this).children("td:first-child").find("a").attr("href"),old=$(this).children("td.stats.old"),rejected=$(this).children("td.stats.rejected");supportedTranslationStatuses.hasOwnProperty("old")&&$(this).find("td.stats.old").attr("data-text",translationSet.old_count).html(''+new Intl.NumberFormat(userLocale.slug).format(translationSet.old_count)+""),supportedTranslationStatuses.hasOwnProperty("rejected")&&$(this).find("td.stats.rejected").attr("data-text",translationSet.rejected_count).html(''+new Intl.NumberFormat(userLocale.slug).format(translationSet.rejected_count)+""),supportedTranslationStatuses.hasOwnProperty("changesrequested")&&$(this).find("td.stats.changesrequested").attr("data-text",translationSet.changesrequested_count).html(''+new Intl.NumberFormat(userLocale.slug).format(translationSet.changesrequested_count)+""),$(this).find("td.stats.warnings").attr("data-text",translationSet.warnings_count).html(''+new Intl.NumberFormat(userLocale.slug).format(translationSet.warnings_count)+""),glotpressAdmin&&($(old).find("a.count").after(''),$(rejected).find("a.count").after(''),"0"!==$(old).find("a.count").text().trim()&&$(old).find("button.delete").attr("disabled",!1).removeClass("hidden"),"0"!==$(rejected).find("a.count").text().trim()&&$(rejected).find("button.delete").attr("disabled",!1).removeClass("hidden"),$(old).find("button.delete").on("click",function(){confirm(wp.i18n.__("You are about to permanently delete these translations.\nThis action cannot be undone.\n'Cancel' to stop, 'OK' to delete.","gp-toolbox"))&&translationsBulkDelete(translationSet.locale,translationSet.slug,"old")}),$(rejected).find("button.delete").on("click",function(){confirm(wp.i18n.__("You are about to permanently delete these translations.\nThis action cannot be undone.\n'Cancel' to stop, 'OK' to delete.","gp-toolbox"))&&translationsBulkDelete(translationSet.locale,translationSet.slug,"rejected")}))}),updateHighlight(),wp.hooks.addAction("gpToolboxUpdateHighlight","update_highlight_action",function(element){updateHighlight(element)}))}); \ No newline at end of file +jQuery(document).ready(function($){var userLocale=gpToolbox.user_locale,supportedTranslationStatuses=gpToolbox.supported_statuses,tableTranslationSets=$("table.gp-table.translation-sets"),glotpressAdmin=gpToolbox.admin,gpUrlProject=gpToolbox.gp_url_project,project=gpToolbox.args.project,dataPrefix="gptoolboxdata-",highlightCounts=!1;function updateHighlight(element){!1!==highlightCounts&&(element?"0"===$(element).find("a").text()?$(element).removeClass("highlight"):$(element).addClass("highlight"):$(tableTranslationSets).find("td.stats").each(function(){"0"===$(this).find("a").text()?($(this).removeClass("highlight"),$(this).find("button.delete").hide().attr("disabled",!0)):$(this).addClass("highlight")}))}function translationsBulkDelete(locale,slug,status){var td=$(tableTranslationSets).find('tbody tr[gptoolboxdata-locale="'+locale+'"]['+dataPrefix+'slug="'+slug+'"] td.stats.'+status),notice=$(td).find("div.progress-notice"),stats=$(td).find("a.count"),button=$(td).find("button.delete");$(stats).hide(),$(button).hide().attr("disabled",!0),$(notice).text(wp.i18n.__("Deleting...","gp-toolbox")).fadeIn(),$.ajax({url:wpApiSettings.root+"gp-toolbox/v1/translations/"+project.path+"/"+locale+"/"+slug+"/"+status+"/-delete",type:"POST",data:{_wpnonce:gpToolbox.nonce},success:function(response){var count=null;"old"===status?count=response.stats.old:"rejected"===status&&(count=response.stats.rejected),$(stats).text(new Intl.NumberFormat(userLocale.slug).format(count)),$(td).attr("data-text",count),updateHighlight(td)},error:function(response){},complete:function(){$(notice).hide().text(""),$(stats).fadeIn()}})}"1"===gpToolbox.highlight_counts&&(highlightCounts=!0),tableTranslationSets.length&&(supportedTranslationStatuses.hasOwnProperty("old")&&$(tableTranslationSets).children("thead").children("tr").find("th:last").after(''+wp.i18n.__("Old","gp-toolbox")+""),supportedTranslationStatuses.hasOwnProperty("rejected")&&$(tableTranslationSets).children("thead").children("tr").find("th:last").after(''+wp.i18n.__("Rejected","gp-toolbox")+""),supportedTranslationStatuses.hasOwnProperty("changesrequested")&&$(tableTranslationSets).children("thead").children("tr").find("th:last").after(''+wp.i18n.__("Changes requested","gp-toolbox")+""),$(tableTranslationSets).children("thead").children("tr").find("th:last").after(''+wp.i18n.__("Warnings","gp-toolbox")+""),$(tableTranslationSets).children("tbody").children("tr").each(function(){supportedTranslationStatuses.hasOwnProperty("old")&&$(this).find("td:last").after(''),supportedTranslationStatuses.hasOwnProperty("rejected")&&$(this).find("td:last").after(''),supportedTranslationStatuses.hasOwnProperty("changesrequested")&&$(this).find("td:last").after(''),$(this).find("td:last").after(''),$(this).children("td:first-child").find("a").each(function(){var regexPattern=new RegExp("^"+gpUrlProject+".*"+project.path+"/(.*)/(.*)/$"),regexPattern=$(this).attr("href").match(regexPattern),locale=regexPattern[1],regexPattern=regexPattern[2];$(this).closest("tr").attr(dataPrefix+"locale",locale),$(this).closest("tr").attr(dataPrefix+"slug",regexPattern),$(this).closest("tr").attr(dataPrefix+"projectpath",project.path)})}),$(tableTranslationSets).children("tbody").children("tr").each(function(){var locale=$(this).attr("gptoolboxdata-locale"),translationSet=gpToolbox.args.translation_sets[locale],locale=$(this).children("td:first-child").find("a").attr("href"),old=$(this).children("td.stats.old"),rejected=$(this).children("td.stats.rejected");supportedTranslationStatuses.hasOwnProperty("old")&&$(this).find("td.stats.old").attr("data-text",translationSet.old_count).html(''+new Intl.NumberFormat(userLocale.slug).format(translationSet.old_count)+""),supportedTranslationStatuses.hasOwnProperty("rejected")&&$(this).find("td.stats.rejected").attr("data-text",translationSet.rejected_count).html(''+new Intl.NumberFormat(userLocale.slug).format(translationSet.rejected_count)+""),supportedTranslationStatuses.hasOwnProperty("changesrequested")&&$(this).find("td.stats.changesrequested").attr("data-text",translationSet.changesrequested_count).html(''+new Intl.NumberFormat(userLocale.slug).format(translationSet.changesrequested_count)+""),$(this).find("td.stats.warnings").attr("data-text",translationSet.warnings_count).html(''+new Intl.NumberFormat(userLocale.slug).format(translationSet.warnings_count)+""),glotpressAdmin&&($(old).find("a.count").after(''),$(rejected).find("a.count").after(''),"0"!==$(old).find("a.count").text().trim()&&$(old).find("button.delete").attr("disabled",!1).removeClass("hidden"),"0"!==$(rejected).find("a.count").text().trim()&&$(rejected).find("button.delete").attr("disabled",!1).removeClass("hidden"),$(old).find("button.delete").on("click",function(){confirm(wp.i18n.__("You are about to permanently delete these translations.\nThis action cannot be undone.\n'Cancel' to stop, 'OK' to delete.","gp-toolbox"))&&translationsBulkDelete(translationSet.locale,translationSet.slug,"old")}),$(rejected).find("button.delete").on("click",function(){confirm(wp.i18n.__("You are about to permanently delete these translations.\nThis action cannot be undone.\n'Cancel' to stop, 'OK' to delete.","gp-toolbox"))&&translationsBulkDelete(translationSet.locale,translationSet.slug,"rejected")}))}),updateHighlight(),wp.hooks.addAction("gpToolboxUpdateHighlight","update_highlight_action",function(element){updateHighlight(element)}))}); +//# sourceMappingURL=project.min.js.map \ No newline at end of file diff --git a/assets/js/project.min.js.map b/assets/js/project.min.js.map new file mode 100644 index 0000000..5eef11f --- /dev/null +++ b/assets/js/project.min.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["project.js"],"names":["jQuery","document","ready","$","userLocale","gpToolbox","user_locale","supportedTranslationStatuses","supported_statuses","tableTranslationSets","glotpressAdmin","admin","gpUrlProject","gp_url_project","project","args","dataPrefix","highlightCounts","updateHighlight","element","find","text","removeClass","addClass","each","this","hide","attr","translationsBulkDelete","locale","slug","status","td","notice","stats","button","wp","i18n","__","fadeIn","ajax","url","wpApiSettings","root","path","type","data","_wpnonce","nonce","success","response","count","old","rejected","Intl","NumberFormat","format","error","complete","highlight_counts","length","hasOwnProperty","children","after","regexPattern","RegExp","match","closest","translationSet","translation_sets","old_count","html","rejected_count","changesrequested_count","warnings_count","trim","on","confirm","hooks","addAction"],"mappings":"AAEAA,OAAQC,QAAS,EAAEC,MAAO,SAAUC,GAEnC,IAAIC,WAAaC,UAAUC,YAGvBC,6BAA+BF,UAAUG,mBAGzCC,qBAAuBN,EAAG,iCAAkC,EAG5DO,eAAiBL,UAAUM,MAG3BC,aAAeP,UAAU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F,MAA7C5D,EAAGiD,GAAI,EAAEhC,KAAM,SAAU,EAAEC,KAAK,EAAEsD,KAAK,GAC3CxE,EAAGiD,GAAI,EAAEhC,KAAM,eAAgB,EAAEO,KAAM,WAAY,CAAA,CAAM,EAAEL,YAAa,QAAS,EAE3B,MAAlDnB,EAAGkD,QAAS,EAAEjC,KAAM,SAAU,EAAEC,KAAK,EAAEsD,KAAK,GAChDxE,EAAGkD,QAAS,EAAEjC,KAAM,eAAgB,EAAEO,KAAM,WAAY,CAAA,CAAM,EAAEL,YAAa,QAAS,EAIvFnB,EAAGiD,GAAI,EAAEhC,KAAM,eAAgB,EAAEwD,GAAI,QAAS,WAExCC,QAASzC,GAAGC,KAAKC,GAAI,4HAA6H,YAAa,CAAE,GACrKV,uBAAwBwC,eAAevC,OAAQuC,eAAetC,KAAM,KAAM,CAE5E,CAAE,EACF3B,EAAGkD,QAAS,EAAEjC,KAAM,eAAgB,EAAEwD,GAAI,QAAS,WAE7CC,QAASzC,GAAGC,KAAKC,GAAI,4HAA6H,YAAa,CAAE,GACrKV,uBAAwBwC,eAAevC,OAAQuC,eAAetC,KAAM,UAAW,CAEjF,CAAE,EAEJ,CACD,EAGAZ,gBAAgB,EAShBkB,GAAG0C,MAAMC,UAAW,2BAA4B,0BAA2B,SAAU5D,SAIpFD,gBAAiBC,OAAQ,CAC1B,CAAE,EAsHJ,CAAE"} \ No newline at end of file diff --git a/assets/js/tools-glossaries.min.js b/assets/js/tools-glossaries.min.js index 8cb6b2a..3072c85 100644 --- a/assets/js/tools-glossaries.min.js +++ b/assets/js/tools-glossaries.min.js @@ -1 +1,2 @@ -jQuery(document).ready(function($){var gpToolboxTable=$("table.gp-table.gp-toolbox.tools-glossaries"),glossariesRows=$(gpToolboxTable).find("tbody tr");$(gpToolboxTable).tablesorter({theme:"glotpress",sortList:[[2,0],[1,0],[3,0]],headers:{0:{sorter:"text"}}}),$("#glossaries-filter").bind("change keyup input",function(){var words=this.value.toLowerCase().split(" ");(""===this.value.trim()?glossariesRows:(glossariesRows.hide(),glossariesRows.filter(function(){for(var t=$(this),d=0;d'+new Intl.NumberFormat(userLocale.slug).format(permissionsCount)+"")):($("p#permission-"+permissionType+"-count").text(wp.i18n.__("No permissions found.","gp-toolbox")),$("div.permission-"+permissionType+"-filter").fadeOut(),$("table.gp-table.gp-toolbox.tools-permission-"+permissionType).fadeOut())):($(notice).hide().text(""),$(notice).text(wp.i18n.sprintf(wp.i18n.__("Error: %s","gp-toolbox"),response.message)),$(notice).fadeIn())},error:function(response){},complete:function(){}})}gpToolboxTablePermissionAdmin.length&&$(gpToolboxTablePermissionAdmin).children("tbody").children("tr").each(function(){var permissionID=$(this).attr("gptoolboxdata-permission");glotpressAdmin&&($(this).find("td.user").text().trim()===userLogin?$(this).find("td.action button.delete").attr("disabled",!0):$(this).find("td.action button.delete").on("click",function(){confirm(wp.i18n.__("You are about to permanently delete these permission.\nThis action cannot be undone.\n'Cancel' to stop, 'OK' to delete.","gp-toolbox"))&&permissionDelete("admin",permissionID)}))}),gpToolboxTablePermissionValidator.length&&$(gpToolboxTablePermissionValidator).children("tbody").children("tr").each(function(){var permissionID=$(this).attr("gptoolboxdata-permission");glotpressAdmin&&$(this).find("td.action button.delete").on("click",function(){confirm(wp.i18n.__("You are about to permanently delete these permission.\nThis action cannot be undone.\n'Cancel' to stop, 'OK' to delete.","gp-toolbox"))&&permissionDelete("validator",permissionID)})}),$(gpToolboxTablePermissionAdmin).tablesorter({theme:"glotpress",sortList:[[1,0]],headers:{0:{sorter:"text"}}}),$("#permission-admin-filter").bind("change keyup input",function(){var words=this.value.toLowerCase().split(" ");(""===this.value.trim()?permissionAdminsRows:(permissionAdminsRows.hide(),permissionAdminsRows.filter(function(){for(var t=$(this),d=0;d'+new Intl.NumberFormat(userLocale.slug).format(permissionsCount)+"")):($("p#permission-"+permissionType+"-count").text(wp.i18n.__("No permissions found.","gp-toolbox")),$("div.permission-"+permissionType+"-filter").fadeOut(),$("table.gp-table.gp-toolbox.tools-permission-"+permissionType).fadeOut())):($(notice).hide().text(""),$(notice).text(wp.i18n.sprintf(wp.i18n.__("Error: %s","gp-toolbox"),response.message)),$(notice).fadeIn())},error:function(response){},complete:function(){}})}gpToolboxTablePermissionAdmin.length&&$(gpToolboxTablePermissionAdmin).children("tbody").children("tr").each(function(){var permissionID=$(this).attr("gptoolboxdata-permission");glotpressAdmin&&($(this).find("td.user").text().trim()===userLogin?$(this).find("td.action button.delete").attr("disabled",!0):$(this).find("td.action button.delete").on("click",function(){confirm(wp.i18n.__("You are about to permanently delete these permission.\nThis action cannot be undone.\n'Cancel' to stop, 'OK' to delete.","gp-toolbox"))&&permissionDelete("admin",permissionID)}))}),gpToolboxTablePermissionValidator.length&&$(gpToolboxTablePermissionValidator).children("tbody").children("tr").each(function(){var permissionID=$(this).attr("gptoolboxdata-permission");glotpressAdmin&&$(this).find("td.action button.delete").on("click",function(){confirm(wp.i18n.__("You are about to permanently delete these permission.\nThis action cannot be undone.\n'Cancel' to stop, 'OK' to delete.","gp-toolbox"))&&permissionDelete("validator",permissionID)})}),$(gpToolboxTablePermissionAdmin).tablesorter({theme:"glotpress",sortList:[[1,0]],headers:{0:{sorter:"text"}}}),$("#permission-admin-filter").bind("change keyup input",function(){var words=this.value.toLowerCase().split(" ");(""===this.value.trim()?permissionAdminsRows:(permissionAdminsRows.hide(),permissionAdminsRows.filter(function(){for(var t=$(this),d=0;d