Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_rightclick.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNastuzziSamy <samy@nastuzzi.fr>2018-05-03 21:42:50 +0300
committerNastuzziSamy <samy@nastuzzi.fr>2018-05-03 21:55:04 +0300
commit159ea38985b1839eb0eb6b9ac3db4f5578fad7a8 (patch)
tree898f87625093e56d8dd0aaa5ef7d5cec22c78cb3
parent25aacd51f976c7f87e3c98356593d760284387a2 (diff)
Add changelogs and update/optimize right click menu functionmentv0.8.0
-rw-r--r--README.md51
-rw-r--r--appinfo/info.xml6
-rw-r--r--js/script.js8
3 files changed, 56 insertions, 9 deletions
diff --git a/README.md b/README.md
index c34fcc0..fb47346 100644
--- a/README.md
+++ b/README.md
@@ -31,9 +31,56 @@
- [x] Detect if an app is installed
- [x] Split js files
- [x] Use strict mode
-- [ ] Create a context menu generator
+- [x] Create a context menu generator
- [ ] Add a context menu to create files or directories
- [ ] Add a context menu in each icon apps
- [ ] Add sub menu compatibility in context menu
-- [ ] Fork the app (with a different name) and allow any app to create its own context menu(s)
+- [ ] Publish a new app (with a different name) and allow any app to create its own context menu(s)
- [ ] Backport to NC 12
+
+# Changelogs
+## v0.8.0
+ - Creation of an object to create simple menus (avalaible for any apps):
+ - RightClick.Option create an option for a menu with an icon, a text and an onClick function
+ - RightClick.Options regroup given options for a menu
+ - RightClick.Menu allow to create a menu object applied to a delimited area
+ - The next version will allow to have submenus
+ - Add changelogs https://github.com/NastuzziSamy/files_rightclick/issues/16
+
+## v0.7.0
+ - Add TODO list
+ - Optimizations
+ - Set the NC compatibility to v13 and above https://github.com/NastuzziSamy/files_rightclick/issues/14
+
+## v0.6.1
+ - Add russian translation (thanks to @zorn)
+
+## v0.6.0
+ - Can now recognized available apps
+ - Bug fixed:
+ - Correct loop of death caused by audioplayer incompatibily (now fixed) https://github.com/NastuzziSamy/files_rightclick/issues/10
+
+## v0.5.3
+ - Bugs fixed:
+ - Share icon didn't show https://github.com/NastuzziSamy/files_rightclick/issues/12
+ - Right click context fixed
+
+## v0.5.2
+ - German text updated (thanks to @worldworm)
+ - Right click context changed
+
+## v0.5.1
+ - Text shortened https://github.com/NastuzziSamy/files_rightclick/issues/9
+
+## v0.5.0
+ - Add portuguese brazil translation (thanks to @darioems)
+ - Add german translation (thanks to @worldworm)
+ - Add (un)select options
+ - Bugs fixed:
+ - Copy/Move options https://github.com/NastuzziSamy/files_rightclick/issues/5
+ - Right click menu didn't show when the file was shared by link
+
+## v0.4.0
+ - First release in the NC appstore
+ - Add right click on files
+ - Add custom options for each type of file
diff --git a/appinfo/info.xml b/appinfo/info.xml
index 3e7c7f0..fcd6357 100644
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -3,9 +3,9 @@
xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
<id>files_rightclick</id>
<name>Files Right Click</name>
- <summary>Add a simple right click menu on the files Nextcloud app</summary>
- <description><![CDATA[Not anymore useful to click on the 3 dots button to popup the file menu, now right click on a specific file where you want to access to its menu to simply show it.]]></description>
- <version>0.7.0</version>
+ <summary>Add a rightclick menu generator for any Nextcloud apps</summary>
+ <description><![CDATA[This app will allow users but also developers to have a right click menu. Simply use the RightClick object to create quickly and easly menus. Already files app got a right click menu]]></description>
+ <version>0.8.0</version>
<licence>AGPL</licence>
<author mail="samy@nastuzzi.fr" homepage="https://github.com/NastuzziSamy/files_rightclick.git">NASTUZZI Samy</author>
<namespace>FilesRightClick</namespace>
diff --git a/js/script.js b/js/script.js
index 2d431e7..c14d037 100644
--- a/js/script.js
+++ b/js/script.js
@@ -183,8 +183,8 @@ var RightClick = RightClick || {};
div.appendTo(context);
- var top = event.pageY + context.position().top - context.offset().top + 15;
- var left = event.pageX + context.position().left - context.offset().left - (div.width() / 2) - 5;
+ var top = event.pageY + delimiter.position().top - delimiter.offset().top + 15;
+ var left = event.pageX + delimiter.position().left - delimiter.offset().left - (div.width() / 2) - 5;
var arrow = (div.width() / 2);
var space = div.outerWidth(true) - div.innerWidth();
@@ -198,8 +198,8 @@ var RightClick = RightClick || {};
left = 0;
}
- else if (left + div.outerWidth(true) >= context.width()) {
- var newLeft = context.width() - div.outerWidth(true) - 1;
+ else if (left + div.outerWidth(true) >= delimiter.width()) {
+ var newLeft = delimiter.width() - div.outerWidth(true) - 1;
arrow += left - newLeft;
if (arrow > div.width() - space) {