diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2023-10-04 01:35:06 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2023-10-04 02:11:48 +0200 |
commit | 1a64deeb894dc95e2645a75771732c6cc53a79ad (patch) | |
tree | 1b9df4838f894577a09b9b260151756272efeb53 /flakes/etherpad-lite/modules/ep_line_height | |
parent | fa25ffd4583cc362075cd5e1b4130f33306103f0 (diff) | |
download | Nix-1a64deeb894dc95e2645a75771732c6cc53a79ad.tar.gz Nix-1a64deeb894dc95e2645a75771732c6cc53a79ad.tar.zst Nix-1a64deeb894dc95e2645a75771732c6cc53a79ad.zip |
Squash changes containing private information
There were a lot of changes since the previous commit, but a lot of them
contained personnal information about users. All thos changes got
stashed into a single commit (history is kept in a different place) and
private information was moved in a separate private repository
Diffstat (limited to 'flakes/etherpad-lite/modules/ep_line_height')
3 files changed, 59 insertions, 0 deletions
diff --git a/flakes/etherpad-lite/modules/ep_line_height/fix.patch b/flakes/etherpad-lite/modules/ep_line_height/fix.patch new file mode 100644 index 0000000..ffd65f1 --- /dev/null +++ b/flakes/etherpad-lite/modules/ep_line_height/fix.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | diff --git a/static/js/index.js b/static/js/index.js | ||
2 | index 1884571..c0490bf 100644 | ||
3 | --- a/static/js/index.js | ||
4 | +++ b/static/js/index.js | ||
5 | @@ -23,9 +23,6 @@ var postAceInit = function(hook, context){ | ||
6 | $('.line-height-menu').hover(function(){ | ||
7 | $('.submenu > .height-selection').attr('size', 4); | ||
8 | }); | ||
9 | - $('.line-height').click(function(){ | ||
10 | - $('.line-height-select').toggle(); | ||
11 | - }); | ||
12 | }; | ||
13 | |||
14 | exports.aceGetFilterStack = function(name, context){ | ||
15 | diff --git a/templates/editbarButtons.ejs b/templates/editbarButtons.ejs | ||
16 | index 89a8aaa..8af258b 100644 | ||
17 | --- a/templates/editbarButtons.ejs | ||
18 | +++ b/templates/editbarButtons.ejs | ||
19 | @@ -1,10 +1,5 @@ | ||
20 | <li class="separator acl-write"></li> | ||
21 | -<li class="acl-write line-height"> | ||
22 | - <a title="line height"> | ||
23 | - <span class="buttonicon" style="background-image:url('../static/plugins/ep_line_height/static/img/icon.png');"></span> | ||
24 | - </a> | ||
25 | -</li> | ||
26 | -<li class="line-height-select" class="acl-write" style="display:none;"> | ||
27 | +<li class="line-height-select" class="acl-write"> | ||
28 | <select class="height-selection"> | ||
29 | <option value="dummy" selected data-l10n-id="ep_line_height.height">Line Height</option> | ||
30 | <option value="1">1x</option> | ||
diff --git a/flakes/etherpad-lite/modules/ep_line_height/node-packages.json b/flakes/etherpad-lite/modules/ep_line_height/node-packages.json new file mode 100644 index 0000000..307c2e7 --- /dev/null +++ b/flakes/etherpad-lite/modules/ep_line_height/node-packages.json | |||
@@ -0,0 +1 @@ | |||
[ "ep_line_height" ] | |||
diff --git a/flakes/etherpad-lite/modules/ep_line_height/node-packages.nix b/flakes/etherpad-lite/modules/ep_line_height/node-packages.nix new file mode 100644 index 0000000..d5d5c21 --- /dev/null +++ b/flakes/etherpad-lite/modules/ep_line_height/node-packages.nix | |||
@@ -0,0 +1,28 @@ | |||
1 | # This file has been generated by node2nix 1.8.0. Do not edit! | ||
2 | |||
3 | {nodeEnv, fetchurl, fetchgit, globalBuildInputs ? []}: | ||
4 | |||
5 | let | ||
6 | sources = {}; | ||
7 | in | ||
8 | { | ||
9 | ep_line_height = nodeEnv.buildNodePackage { | ||
10 | name = "ep_line_height"; | ||
11 | packageName = "ep_line_height"; | ||
12 | version = "0.0.4"; | ||
13 | src = fetchurl { | ||
14 | url = "https://registry.npmjs.org/ep_line_height/-/ep_line_height-0.0.4.tgz"; | ||
15 | sha1 = "8afbb441e6d65db97d2335887f9352b10b5d22d2"; | ||
16 | }; | ||
17 | buildInputs = globalBuildInputs; | ||
18 | preRebuild = '' | ||
19 | patch -p1 < ${./fix.patch} | ||
20 | ''; | ||
21 | meta = { | ||
22 | description = "Change the line height"; | ||
23 | }; | ||
24 | production = true; | ||
25 | bypassCache = true; | ||
26 | reconstructLock = true; | ||
27 | }; | ||
28 | } | ||