ep_stats 0.0.12 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/backend-tests.yml +20 -9
- package/.github/workflows/frontend-tests.yml +92 -0
- package/.github/workflows/npmpublish.yml +12 -8
- package/locales/de.json +15 -0
- package/locales/en.json +15 -0
- package/locales/fr.json +15 -0
- package/locales/my.json +15 -0
- package/locales/sw.json +15 -0
- package/locales/th.json +15 -0
- package/package.json +9 -8
- package/static/css/stats.css +0 -1
- package/templates/scripts.html +1 -1
- package/templates/stats.html +12 -12
- package/templates/stats_entry.ejs +2 -2
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
# You need to change lines 38 and 46 in case the plugin's name on npmjs.com is different
|
|
2
|
-
# from the repository name
|
|
3
|
-
|
|
4
1
|
name: "Backend tests"
|
|
5
2
|
|
|
6
3
|
# any branch is useful for testing before a PR is submitted
|
|
@@ -17,6 +14,10 @@ jobs:
|
|
|
17
14
|
runs-on: ubuntu-latest
|
|
18
15
|
|
|
19
16
|
steps:
|
|
17
|
+
- uses: actions/setup-node@v2
|
|
18
|
+
with:
|
|
19
|
+
node-version: 12
|
|
20
|
+
|
|
20
21
|
- name: Install libreoffice
|
|
21
22
|
run: |
|
|
22
23
|
sudo add-apt-repository -y ppa:libreoffice/ppa
|
|
@@ -32,19 +33,29 @@ jobs:
|
|
|
32
33
|
- name: Install all dependencies and symlink for ep_etherpad-lite
|
|
33
34
|
run: src/bin/installDeps.sh
|
|
34
35
|
|
|
35
|
-
# clone this repository into node_modules/ep_plugin-name
|
|
36
36
|
- name: Checkout plugin repository
|
|
37
37
|
uses: actions/checkout@v2
|
|
38
38
|
with:
|
|
39
|
-
path: ./node_modules
|
|
39
|
+
path: ./node_modules/__tmp
|
|
40
|
+
|
|
41
|
+
- name: Determine plugin name
|
|
42
|
+
id: plugin_name
|
|
43
|
+
run: |
|
|
44
|
+
cd ./node_modules/__tmp
|
|
45
|
+
npx -c 'printf %s\\n "::set-output name=plugin_name::${npm_package_name}"'
|
|
46
|
+
|
|
47
|
+
- name: Rename plugin directory
|
|
48
|
+
run: |
|
|
49
|
+
mv ./node_modules/__tmp ./node_modules/"${PLUGIN_NAME}"
|
|
50
|
+
env:
|
|
51
|
+
PLUGIN_NAME: ${{ steps.plugin_name.outputs.plugin_name }}
|
|
40
52
|
|
|
41
53
|
- name: Install plugin dependencies
|
|
42
54
|
run: |
|
|
43
|
-
cd node_modules
|
|
55
|
+
cd ./node_modules/"${PLUGIN_NAME}"
|
|
44
56
|
npm ci
|
|
57
|
+
env:
|
|
58
|
+
PLUGIN_NAME: ${{ steps.plugin_name.outputs.plugin_name }}
|
|
45
59
|
|
|
46
60
|
- name: Run the backend tests
|
|
47
61
|
run: cd src && npm test
|
|
48
|
-
|
|
49
|
-
##ETHERPAD_NPM_V=2
|
|
50
|
-
## NPM configuration automatically created using src/bin/plugins/updateAllPluginsScript.sh
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# Publicly credit Sauce Labs because they generously support open source
|
|
2
|
+
# projects.
|
|
3
|
+
name: "frontend tests powered by Sauce Labs"
|
|
4
|
+
|
|
5
|
+
on: [push]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
test:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
|
|
11
|
+
steps:
|
|
12
|
+
- name: Generate Sauce Labs strings
|
|
13
|
+
id: sauce_strings
|
|
14
|
+
run: |
|
|
15
|
+
printf %s\\n '::set-output name=name::${{github.event.repository.name}} ${{ github.workflow }} - ${{ github.job }}'
|
|
16
|
+
printf %s\\n '::set-output name=tunnel_id::${{ github.run_id }}-${{ github.run_number }}-${{ github.job }}'
|
|
17
|
+
|
|
18
|
+
- uses: actions/setup-node@v2
|
|
19
|
+
with:
|
|
20
|
+
node-version: 12
|
|
21
|
+
|
|
22
|
+
- name: Check out Etherpad core
|
|
23
|
+
uses: actions/checkout@v2
|
|
24
|
+
with:
|
|
25
|
+
repository: ether/etherpad-lite
|
|
26
|
+
|
|
27
|
+
- name: Check out the plugin
|
|
28
|
+
uses: actions/checkout@v2
|
|
29
|
+
with:
|
|
30
|
+
path: ./node_modules/__tmp
|
|
31
|
+
|
|
32
|
+
- name: export GIT_HASH to env
|
|
33
|
+
id: environment
|
|
34
|
+
run: |
|
|
35
|
+
cd ./node_modules/__tmp
|
|
36
|
+
echo "::set-output name=sha_short::$(git rev-parse --short ${{ github.sha }})"
|
|
37
|
+
|
|
38
|
+
- name: Determine plugin name
|
|
39
|
+
id: plugin_name
|
|
40
|
+
run: |
|
|
41
|
+
cd ./node_modules/__tmp
|
|
42
|
+
npx -c 'printf %s\\n "::set-output name=plugin_name::${npm_package_name}"'
|
|
43
|
+
|
|
44
|
+
- name: Rename plugin directory
|
|
45
|
+
env:
|
|
46
|
+
PLUGIN_NAME: ${{ steps.plugin_name.outputs.plugin_name }}
|
|
47
|
+
run: |
|
|
48
|
+
mv ./node_modules/__tmp ./node_modules/"${PLUGIN_NAME}"
|
|
49
|
+
|
|
50
|
+
- name: Install plugin dependencies
|
|
51
|
+
env:
|
|
52
|
+
PLUGIN_NAME: ${{ steps.plugin_name.outputs.plugin_name }}
|
|
53
|
+
run: |
|
|
54
|
+
cd ./node_modules/"${PLUGIN_NAME}"
|
|
55
|
+
npm ci
|
|
56
|
+
|
|
57
|
+
# This must be run after setting up the plugin, otherwise npm will try to
|
|
58
|
+
# hoist common dependencies by removing them from src/node_modules and
|
|
59
|
+
# installing them in the top-level node_modules. As of v6.14.10, npm's hoist
|
|
60
|
+
# logic appears to be buggy, because it sometimes removes dependencies from
|
|
61
|
+
# src/node_modules but fails to add them to the top-level node_modules. Even
|
|
62
|
+
# if npm correctly hoists the dependencies, the hoisting seems to confuse
|
|
63
|
+
# tools such as `npm outdated`, `npm update`, and some ESLint rules.
|
|
64
|
+
- name: Install Etherpad core dependencies
|
|
65
|
+
run: src/bin/installDeps.sh
|
|
66
|
+
|
|
67
|
+
- name: Create settings.json
|
|
68
|
+
run: cp settings.json.template settings.json
|
|
69
|
+
|
|
70
|
+
- name: Disable import/export rate limiting
|
|
71
|
+
run: |
|
|
72
|
+
sed -e '/^ *"importExportRateLimiting":/,/^ *\}/ s/"max":.*/"max": 0/' -i settings.json
|
|
73
|
+
|
|
74
|
+
- name: Remove standard frontend test files
|
|
75
|
+
run: rm -rf src/tests/frontend/specs
|
|
76
|
+
|
|
77
|
+
- uses: saucelabs/sauce-connect-action@v1
|
|
78
|
+
with:
|
|
79
|
+
username: ${{ secrets.SAUCE_USERNAME }}
|
|
80
|
+
accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
|
|
81
|
+
tunnelIdentifier: ${{ steps.sauce_strings.outputs.tunnel_id }}
|
|
82
|
+
|
|
83
|
+
- name: Run the frontend tests
|
|
84
|
+
shell: bash
|
|
85
|
+
env:
|
|
86
|
+
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
|
|
87
|
+
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
|
|
88
|
+
SAUCE_NAME: ${{ steps.sauce_strings.outputs.name }}
|
|
89
|
+
TRAVIS_JOB_NUMBER: ${{ steps.sauce_strings.outputs.tunnel_id }}
|
|
90
|
+
GIT_HASH: ${{ steps.environment.outputs.sha_short }}
|
|
91
|
+
run: |
|
|
92
|
+
src/tests/frontend/travis/runner.sh
|
|
@@ -56,15 +56,22 @@ jobs:
|
|
|
56
56
|
runs-on: ubuntu-latest
|
|
57
57
|
steps:
|
|
58
58
|
- uses: actions/checkout@v2
|
|
59
|
+
with:
|
|
60
|
+
fetch-depth: 0
|
|
59
61
|
- uses: actions/setup-node@v1
|
|
60
62
|
with:
|
|
61
63
|
node-version: 12
|
|
62
64
|
registry-url: https://registry.npmjs.org/
|
|
63
|
-
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
- name: Bump version (patch)
|
|
66
|
+
run: |
|
|
67
|
+
LATEST_TAG=$(git describe --tags --abbrev=0) || exit 1
|
|
68
|
+
NEW_COMMITS=$(git rev-list --count "${LATEST_TAG}"..) || exit 1
|
|
69
|
+
[ "${NEW_COMMITS}" -gt 0 ] || exit 0
|
|
70
|
+
git config user.name 'github-actions[bot]'
|
|
71
|
+
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
|
|
72
|
+
npm ci
|
|
73
|
+
npm version patch
|
|
74
|
+
git push --follow-tags
|
|
68
75
|
# `npm publish` must come after `git push` otherwise there is a race
|
|
69
76
|
# condition: If two PRs are merged back-to-back then master/main will be
|
|
70
77
|
# updated with the commits from the second PR before the first PR's
|
|
@@ -78,6 +85,3 @@ jobs:
|
|
|
78
85
|
- run: npm publish
|
|
79
86
|
env:
|
|
80
87
|
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
|
81
|
-
|
|
82
|
-
##ETHERPAD_NPM_V=2
|
|
83
|
-
## NPM configuration automatically created using bin/plugins/updateAllPluginsScript.sh
|
package/locales/de.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"ep_stats.stats_entry.show_pad_and_author_stats" : "Pad- und Autorenstatistiken anzeigen",
|
|
3
|
+
"ep_stats.stats_template.characters_no_whitespace" : "Zeichen (kein Leerzeichen):",
|
|
4
|
+
"ep_stats.stats_template.characters_with_whitespace" : "Zeichen (mit Leerzeichen):",
|
|
5
|
+
"ep_stats.stats_template.lines_as_only_contribution" : "Linien als einziger Mitwirkender:",
|
|
6
|
+
"ep_stats.stats_template.number_of_authors" : "Anzahl der Autoren:",
|
|
7
|
+
"ep_stats.stats_template.number_of_characters_exc_whitespace" : "Anzahl der Zeichen (Exc Leerzeichen):",
|
|
8
|
+
"ep_stats.stats_template.number_of_characters_ind_whitespace" : "Anzahl der Zeichen (inkl. Leerzeichen):",
|
|
9
|
+
"ep_stats.stats_template.number_of_lines_contributed_to" : "Anzahl der Beitrags-Zeilen:",
|
|
10
|
+
"ep_stats.stats_template.number_of_words_contributed_to" : "Anzahl der Beitrags-Wörter:",
|
|
11
|
+
"ep_stats.stats_template.pad_stats" : "Pad-Statistiken",
|
|
12
|
+
"ep_stats.stats_template.revision_count" : "Revisionsanzahl:",
|
|
13
|
+
"ep_stats.stats_template.saved_revision_count" : "Gespeicherte Revisionsanzahl:",
|
|
14
|
+
"ep_stats.stats_template.word_count" : "Wortanzahl:"
|
|
15
|
+
}
|
package/locales/en.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"ep_stats.stats_entry.show_pad_and_author_stats" : "Show Pad and Author stats",
|
|
3
|
+
"ep_stats.stats_template.characters_no_whitespace" : "Characters (no whitespace):",
|
|
4
|
+
"ep_stats.stats_template.characters_with_whitespace" : "Characters (with whitespace):",
|
|
5
|
+
"ep_stats.stats_template.lines_as_only_contribution" : "Lines as Only Contributor:",
|
|
6
|
+
"ep_stats.stats_template.number_of_authors" : "Number of Authors:",
|
|
7
|
+
"ep_stats.stats_template.number_of_characters_exc_whitespace" : "Number of Characters (Exc Whitespace):",
|
|
8
|
+
"ep_stats.stats_template.number_of_characters_ind_whitespace" : "Number of Characters (Inc Whitespace):",
|
|
9
|
+
"ep_stats.stats_template.number_of_lines_contributed_to" : "Number of Lines Contributed to:",
|
|
10
|
+
"ep_stats.stats_template.number_of_words_contributed_to" : "Number of Words Contributed to:",
|
|
11
|
+
"ep_stats.stats_template.pad_stats" : "Pad Stats",
|
|
12
|
+
"ep_stats.stats_template.revision_count" : "Revision Count:",
|
|
13
|
+
"ep_stats.stats_template.saved_revision_count" : "Saved Revision Count:",
|
|
14
|
+
"ep_stats.stats_template.word_count" : "Word Count:"
|
|
15
|
+
}
|
package/locales/fr.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"ep_stats.stats_entry.show_pad_and_author_stats" : "Afficher les statistiques du Pad et de l'Auteur",
|
|
3
|
+
"ep_stats.stats_template.characters_no_whitespace" : "Caractères (pas d'espaces):",
|
|
4
|
+
"ep_stats.stats_template.characters_with_whitespace" : "Caractères (avec espace):",
|
|
5
|
+
"ep_stats.stats_template.lines_as_only_contribution" : "Lignes en tant que contributeur solo :",
|
|
6
|
+
"ep_stats.stats_template.number_of_authors" : "Nombre d'auteurs :",
|
|
7
|
+
"ep_stats.stats_template.number_of_characters_exc_whitespace" : "Nombre de caractères (sauf espace blanc):",
|
|
8
|
+
"ep_stats.stats_template.number_of_characters_ind_whitespace" : "Nombre de caractères (Inc Whitespace):",
|
|
9
|
+
"ep_stats.stats_template.number_of_lines_contributed_to" : "Nombre de lignes contribuées à :",
|
|
10
|
+
"ep_stats.stats_template.number_of_words_contributed_to" : "Nombre de mots contribués à :",
|
|
11
|
+
"ep_stats.stats_template.pad_stats" : "Statistiques du pad",
|
|
12
|
+
"ep_stats.stats_template.revision_count" : "Nombre de révisions :",
|
|
13
|
+
"ep_stats.stats_template.saved_revision_count" : "Nombre de révisions enregistrées :",
|
|
14
|
+
"ep_stats.stats_template.word_count" : "Nombre de mots :"
|
|
15
|
+
}
|
package/locales/my.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"ep_stats.stats_entry.show_pad_and_author_stats" : "Pad နှင့်စာရေးသူစာရင်းဇယားများကိုပြပါ",
|
|
3
|
+
"ep_stats.stats_template.characters_no_whitespace" : "စာလုံးများ (နေရာလွတ်မရှိ):",
|
|
4
|
+
"ep_stats.stats_template.characters_with_whitespace" : "အက္ခရာများ (နေရာလွတ်) နှင့်:",
|
|
5
|
+
"ep_stats.stats_template.lines_as_only_contribution" : "တစ်ကိုယ်တော်ပံ့ပိုးကူညီသူများအဖြစ်လိုင်းမျာ",
|
|
6
|
+
"ep_stats.stats_template.number_of_authors" : "စာရေးသူအရေအတွက်:",
|
|
7
|
+
"ep_stats.stats_template.number_of_characters_exc_whitespace" : "အက္ခရာအရေအတွက် (အထူးနေရာလွတ်)",
|
|
8
|
+
"ep_stats.stats_template.number_of_characters_ind_whitespace" : "အက္ခရာအရေအတွက် (Inc Whitespace):",
|
|
9
|
+
"ep_stats.stats_template.number_of_lines_contributed_to" : "ပံ့ပိုးပေးသောလိုင်းအရေအတွက်:",
|
|
10
|
+
"ep_stats.stats_template.number_of_words_contributed_to" : "ပံ့ပိုးပေးသောစာလုံးအရေအတွက်:",
|
|
11
|
+
"ep_stats.stats_template.pad_stats" : "Pad စာရင်းအင်းများ",
|
|
12
|
+
"ep_stats.stats_template.revision_count" : "တည်းဖြတ်မှုအရေအတွက်:",
|
|
13
|
+
"ep_stats.stats_template.saved_revision_count" : "သိမ်းဆည်းထားသောပြန်လည်တည်းဖြတ်မှုအရေအတွက်:",
|
|
14
|
+
"ep_stats.stats_template.word_count" : "စာလုံးအရေအတွက်:"
|
|
15
|
+
}
|
package/locales/sw.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"ep_stats.stats_entry.show_pad_and_author_stats" : "Onyesha takwimu na Mwandishi",
|
|
3
|
+
"ep_stats.stats_template.characters_no_whitespace" : "Wahusika (hakuna nafasi nyeupe):",
|
|
4
|
+
"ep_stats.stats_template.characters_with_whitespace" : "Wahusika (wenye nafasi nyeupe):",
|
|
5
|
+
"ep_stats.stats_template.lines_as_only_contribution" : "Mistari kama Mchangiaji wa peke yake:",
|
|
6
|
+
"ep_stats.stats_template.number_of_authors" : "Idadi ya Waandishi:",
|
|
7
|
+
"ep_stats.stats_template.number_of_characters_exc_whitespace" : "Idadi ya Wahusika (Exc Whitespace):",
|
|
8
|
+
"ep_stats.stats_template.number_of_characters_ind_whitespace" : "Idadi ya Wahusika (Inc Whitespace):",
|
|
9
|
+
"ep_stats.stats_template.number_of_lines_contributed_to" : "Idadi ya Mistari Iliyochangiwa kwa:",
|
|
10
|
+
"ep_stats.stats_template.number_of_words_contributed_to" : "Idadi ya Maneno Iliyotolewa kwa:",
|
|
11
|
+
"ep_stats.stats_template.pad_stats" : "Pad Stats",
|
|
12
|
+
"ep_stats.stats_template.revision_count" : "Hesabu ya Marekebisho:",
|
|
13
|
+
"ep_stats.stats_template.saved_revision_count" : "Hesabu ya Marekebisho Iliyohifadhiwa:",
|
|
14
|
+
"ep_stats.stats_template.word_count" : "Hesabu ya Neno:"
|
|
15
|
+
}
|
package/locales/th.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"ep_stats.stats_entry.show_pad_and_author_stats" : "แสดงสถิติของแพดและผู้เขียน",
|
|
3
|
+
"ep_stats.stats_template.characters_no_whitespace" : "อักขระ (ไม่มีช่องว่าง):",
|
|
4
|
+
"ep_stats.stats_template.characters_with_whitespace" : "ตัวละคร (มีช่องว่าง):",
|
|
5
|
+
"ep_stats.stats_template.lines_as_only_contribution" : "เรียงแถวแบบโซโล Contributor:",
|
|
6
|
+
"ep_stats.stats_template.number_of_authors" : "จำนวนผู้เขียน:",
|
|
7
|
+
"ep_stats.stats_template.number_of_characters_exc_whitespace" : "จำนวนอักขระ (เว้นวรรค):",
|
|
8
|
+
"ep_stats.stats_template.number_of_characters_ind_whitespace" : "จำนวนอักขระ (Inc ช่องว่าง):",
|
|
9
|
+
"ep_stats.stats_template.number_of_lines_contributed_to" : "จำนวนบรรทัดที่สนับสนุน:",
|
|
10
|
+
"ep_stats.stats_template.number_of_words_contributed_to" : "จำนวนคำที่มีส่วนร่วมใน:",
|
|
11
|
+
"ep_stats.stats_template.pad_stats" : "สถิติแพด",
|
|
12
|
+
"ep_stats.stats_template.revision_count" : "จำนวนการแก้ไข:",
|
|
13
|
+
"ep_stats.stats_template.saved_revision_count" : "จำนวนการแก้ไขที่บันทึกไว้:",
|
|
14
|
+
"ep_stats.stats_template.word_count" : "จำนวนคำ:"
|
|
15
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ep_stats",
|
|
3
3
|
"description": "See pad Stats in Etherpad",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.16",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "John McLear",
|
|
7
7
|
"email": "john@mclear.co.uk",
|
|
@@ -25,17 +25,18 @@
|
|
|
25
25
|
"_resolved": "https://registry.npmjs.org/ep_stats/-/ep_stats-0.0.1.tgz",
|
|
26
26
|
"funding": {
|
|
27
27
|
"type": "individual",
|
|
28
|
-
"url": "
|
|
28
|
+
"url": "https://etherpad.org/"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"eslint": "^7.
|
|
32
|
-
"eslint-config-etherpad": "^
|
|
31
|
+
"eslint": "^7.32.0",
|
|
32
|
+
"eslint-config-etherpad": "^2.0.2",
|
|
33
33
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
34
|
-
"eslint-plugin-mocha": "^
|
|
34
|
+
"eslint-plugin-mocha": "^9.0.0",
|
|
35
35
|
"eslint-plugin-node": "^11.1.0",
|
|
36
36
|
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
37
|
-
"eslint-plugin-promise": "^
|
|
38
|
-
"eslint-plugin-you-dont-need-lodash-underscore": "^6.
|
|
37
|
+
"eslint-plugin-promise": "^5.1.1",
|
|
38
|
+
"eslint-plugin-you-dont-need-lodash-underscore": "^6.12.0",
|
|
39
|
+
"eslint-plugin-cypress": "^2.12.1"
|
|
39
40
|
},
|
|
40
41
|
"peerDependencies": {
|
|
41
42
|
"ep_etherpad-lite": ">=1.8.6"
|
|
@@ -49,6 +50,6 @@
|
|
|
49
50
|
"lint:fix": "eslint --fix ."
|
|
50
51
|
},
|
|
51
52
|
"engines": {
|
|
52
|
-
"node": ">=
|
|
53
|
+
"node": ">=12.13.0"
|
|
53
54
|
}
|
|
54
55
|
}
|
package/static/css/stats.css
CHANGED
package/templates/scripts.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<script src="
|
|
1
|
+
<script src="../static/plugins/ep_stats/static/js/main.js"></script>
|
package/templates/stats.html
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
<!-- Like Clean HTML? -->
|
|
2
2
|
<div id='stats'>
|
|
3
3
|
<div id='padStats'>
|
|
4
|
-
<h3>Pad Stats</h3>
|
|
4
|
+
<h3 data-l10n-id="ep_stats.stats_template.pad_stats">Pad Stats</h3>
|
|
5
5
|
<div id='length'>
|
|
6
|
-
<h4>Characters (no whitespace):</h4>
|
|
6
|
+
<h4 data-l10n-id="ep_stats.stats_template.characters_no_whitespace">Characters (no whitespace):</h4>
|
|
7
7
|
<div class='stats'></div>
|
|
8
8
|
</div>
|
|
9
9
|
<div id='lengthWhitespace'>
|
|
10
|
-
<h4>Characters (with whitespace):</h4>
|
|
10
|
+
<h4 data-l10n-id="ep_stats.stats_template.characters_with_whitespace">Characters (with whitespace):</h4>
|
|
11
11
|
<div class='stats'></div>
|
|
12
12
|
</div>
|
|
13
13
|
<div id='wordCount'>
|
|
14
|
-
<h4>Word Count:</h4>
|
|
14
|
+
<h4 data-l10n-id="ep_stats.stats_template.word_count">Word Count:</h4>
|
|
15
15
|
<div class='stats'></div>
|
|
16
16
|
</div>
|
|
17
17
|
<div id='revCount'>
|
|
18
|
-
<h4>Revision Count:</h4>
|
|
18
|
+
<h4 data-l10n-id="ep_stats.stats_template.revision_count">Revision Count:</h4>
|
|
19
19
|
<div class='stats'></div>
|
|
20
20
|
</div>
|
|
21
21
|
<div id='savedRevCount'>
|
|
22
|
-
<h4>Saved Revision Count:</h4>
|
|
22
|
+
<h4 data-l10n-id="ep_stats.stats_template.saved_revision_count">Saved Revision Count:</h4>
|
|
23
23
|
<div class='stats'></div>
|
|
24
24
|
</div>
|
|
25
25
|
<div id='authorCount'>
|
|
26
|
-
<h4
|
|
26
|
+
<h4 data-l10n-id="ep_stats.stats_template.number_of_authors">Number of Authors:</h4>
|
|
27
27
|
<div class='stats'></div>
|
|
28
28
|
</div>
|
|
29
29
|
</div>
|
|
@@ -31,24 +31,24 @@
|
|
|
31
31
|
<div class='authorStats'>
|
|
32
32
|
<h3>Author Stats</h3>
|
|
33
33
|
<div id='wordsContributed'>
|
|
34
|
-
<h4>Number of Words Contributed to:</h4>
|
|
34
|
+
<h4 data-l10n-id="ep_stats.stats_template.number_of_words_contributed_to">Number of Words Contributed to:</h4>
|
|
35
35
|
<div class='stats'></div>
|
|
36
36
|
</div>
|
|
37
37
|
<div id='linesContributed'>
|
|
38
|
-
<h4>Number of Lines Contributed to:</h4>
|
|
38
|
+
<h4 data-l10n-id="ep_stats.stats_template.number_of_lines_contributed_to">Number of Lines Contributed to:</h4>
|
|
39
39
|
<div class='stats'></div>
|
|
40
40
|
</div>
|
|
41
41
|
<div id='linesAsOnlyContributor'>
|
|
42
|
-
<h4>Lines as Only Contributor:</h4>
|
|
42
|
+
<h4 data-l10n-id="ep_stats.stats_template.lines_as_only_contribution">Lines as Only Contributor:</h4>
|
|
43
43
|
<div class='stats'></div>
|
|
44
44
|
</div>
|
|
45
45
|
<div id='numberOfCharsIncWS'>
|
|
46
|
-
<h4>Number of Characters (Inc Whitespace):</h4>
|
|
46
|
+
<h4 data-l10n-id="ep_stats.stats_template.number_of_characters_ind_whitespace">Number of Characters (Inc Whitespace):</h4>
|
|
47
47
|
<div class='stats'></div>
|
|
48
48
|
</div>
|
|
49
49
|
<!--
|
|
50
50
|
<div id='numberOfCharsExcWS'>
|
|
51
|
-
<h4>Number of Characters (Exc Whitespace):</h4>
|
|
51
|
+
<h4 data-l10n-id="ep_stats.stats_template.number_of_characters_exc_whitespace">Number of Characters (Exc Whitespace):</h4>
|
|
52
52
|
<div class='stats'></div>
|
|
53
53
|
</div>
|
|
54
54
|
-->
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
<p>
|
|
2
|
-
<input type="checkbox" id="options-stats" checked></input>
|
|
3
|
-
<label for="options-stats">Show Pad and Author stats</label>
|
|
2
|
+
<input type="checkbox" id="options-stats" checked></input>
|
|
3
|
+
<label for="options-stats" data-l10n-id="ep_stats.stats_entry.show_pad_and_author_stats">Show Pad and Author stats</label>
|
|
4
4
|
</p>
|