nextcloud / dashboard Goto Github PK
View Code? Open in Web Editor NEWARCHIVED, new Dashboard is in the server
Home Page: https://nextcloud.com/dashboard
License: GNU Affero General Public License v3.0
ARCHIVED, new Dashboard is in the server
Home Page: https://nextcloud.com/dashboard
License: GNU Affero General Public License v3.0
Hi,
I needed to perform the following code changes to latest dashboard to enable saving and removing of widgets in dashboard.
These are for PostgreSQL 10.10, PHP 7.2.15, Nextcloud 17.0.0 Beta 4 and Dashboard 6.0.0 from nextcloud app store
in lib/Db/SettingsRequest.php:
change
$qb->set('enabled', $qb->createNamedParameter(false));
to
$qb->set('enabled', $qb->createNamedParameter('false'));
in lib/Db/SettingsRequestBuilder.php:
change
->setEnabled(($data['enabled'] === '1') ? true : false);
to
->setEnabled(($data['enabled'] === true) ? true : false);
Hallo
ich kann geänderter Einstellungen leider nicht speichern. (Nextcloud 12.0.0)
Fehler im Log: Undefined index: link at /var/www/vhosts/xxxxxx.de/httpdocs/apps/dashboard/lib/Service/ActivityService.php#104
There should be an option in the "Add New Widget" popup to load any URL (similar to how "external sites" works). If the page is on the same domain (i.e. is another Nextcloud page) allow the running of custom scripts as well. This could be added as a Widget to the nextcoud/external app, or it could be added here. I think adding it here would be a much smoother experience.
One problem this could fix rather quickly is that there aren't many supported apps. If I could just load the nextcloud URL to my calendar, then style it to remove the menubar and sidebar, I can get it to work without waiting for nextcloud/calendar to add the widget.
Hi,
I cannot find Arabic on my Web language profile selection on NextCloud.
Is it a bug ?
Link to translations : https://www.transifex.com/nextcloud/nextcloud/language/ar/
Link to a toot : https://mastodon.social/users/ButterflyOfFire/statuses/99501182674701137
Best regards,
Enabled dash it shows the icon on the menu, when I go into the dash it displays
Settings invalid.
Also none of my events show, no diary ?
NC13
It would be awesome to have the possibility to define multiple dashboards and then assign them to groups or users. Something like i'm using on Jira would be nice.
https://support.atlassian.com/jira-core-cloud/docs/work-with-dashboards-in-jira/
thxs
I'm using NC 18.0 and dashboard app (source code, not published in app store). After installing the built dashboard to apps directory, nextcloud starts with complaining logs:
[Tue Jan 21 11:57:10 2020] PHP Fatal error: Trait 'daita\MySmallPhpTools\Traits\TArrayTools' not found in /Users/lyon/workspace/nextcloud/server/apps/dashboard/lib/Service/WidgetsService.php on line 49
[Tue Jan 21 11:57:10 2020] ::1:56602 [500]: /index.php/apps/files/ - Trait 'daita\MySmallPhpTools\Traits\TArrayTools' not found in /Users/lyon/workspace/nextcloud/server/apps/dashboard/lib/Service/WidgetsService.php on line 49
[Tue Jan 21 11:57:10 2020] Trait 'daita\MySmallPhpTools\Traits\TArrayTools' not found at /Users/lyon/workspace/nextcloud/server/apps/dashboard/lib/Service/WidgetsService.php#49
Reproduce steps:
From my view, this problem is caused by lacking of dependency of 3rd party lib(MySmallPhpTools), and I turned to Makefile:
appstore: composer npm clean
mkdir -p $(sign_dir)
rsync -a \
--exclude=/build \
--exclude=/docs \
--exclude=/l10n/templates \
--exclude=/l10n/.tx \
Before zipping the app, vendor directory is deleted due to clean task in the Makefile.
So I removed 'clean' for appstore task and nextcloud starts successfully without above complaining logs.
I'm not sure whether this modification is right, and need your help. Thanks!
My configuration:
Ubuntu 16.04.5 4.4.0-141-generic
PHP Version: 7.0.32
mysql Version: 5.7.24
Firefox 64.0 (64-Bit)
Nextcloud 14.0.6
The Popup-Window to create an announcement is hidden. It shows only if all other Dashboard boxes but the announcement-box are not configured.
In data/nextcloud.log following error is repeatedly logged:
{"reqId":"Vb5L8uRZxOrXjHQcTS7Y","level":3,"time":"2019-01-18T21:31:39+00:00","remoteAddr":"xx.xx.xx.xx","user":"xxxxx","app":"PHP","method":"GET","url":"/apps/dashboard/events/1?start=2018-12- 31&end=2019-02-11","message":"Undefined index: SUMMARY at /var/www/owncloud/apps/dashboard/lib/Controller/CalendarController.php#301","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv: 64.0) Gecko/20100101 Firefox/64.0","version":"14.0.6.0"}
There are still examples included at https://github.com/nextcloud/dashboard/tree/master/vendor such as https://github.com/nextcloud/dashboard/blob/master/vendor/datatables/datatables/examples/resources/examples.php and some more which we should all remove.
Assigning myself here.
It would be nice if the admin can define some widgets to show using a skeleton structure
Hi,
I just installed dashboard the first time and after a little issue (#34 ) I have some FR:
Extension missing: imap
If the mail app is installed, then mail should be working in dashboard too ;)
Hi,
When I enable the dashboard, the following warnings appear in my log:
[owncloud][no app in context][3] Admin section instance must implement \OCP\ISection. Invalid class: OCA\Dashboard\Controller\AdminController
[owncloud][no app in context][3] Admin section instance must implement \OCP\Settings\ISection. Invalid class: OCA\Dashboard\Controller\AdminController
Also, when I try to change the app's settings in the global admin panel, the save button does nothing. I wanted to disable the email block & reorder the others, however I'm unable to save any config changes.
NC12
Cheers!
No longer possible to remove any widgets...
Possibly more issues that I did not notice yet
Invalid database records seem to remain in the database after uninstallation of the plugin
Is it possible to fix it ?
[index] Error: Doctrine\DBAL\Exception\DriverException: An exception occurred while executing 'UPDATE oc_dashboard_settings SET enabled = ? WHERE (widget_id = ?) AND (user_id = ?)' with params [false, "fortunes", "someusername"]:
SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: '' for column nextcloud.oc_dashboard_settings.enabled at row 1 at <>
/var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php line 128
convertException("An exception oc ... 1", Doctrine\DBAL\Dr ... ]})
/var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php line 1015
driverExceptionDuringQuery(Doctrine\DBAL\Driver\PDOMySql\Driver {}, Doctrine\DBAL\Dr ... ]}, "UPDATE `oc_dash ... )", {1: false,2: "fortunes",3: "someusername"})
/var/www/html/nextcloud/lib/private/DB/Connection.php line 216
executeUpdate("UPDATE `oc_dash ... )", [false,"fortunes","someusername"], [2,2,2])
/var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php line 208
executeUpdate("UPDATE `oc_dash ... )", {dcValue1: false ... "}, {dcValue1: 2,dcValue2: 2,dcValue3: 2})
/var/www/html/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php line 214
execute()
/var/www/html/nextcloud/apps/dashboard/lib/Db/SettingsRequest.php line 106
execute()
/var/www/html/nextcloud/apps/dashboard/lib/Service/WidgetsService.php line 124
disableWidget("fortunes", "someusername")
/var/www/html/nextcloud/apps/dashboard/lib/Controller/NavigationController.php line 140
removeWidget("fortunes")
/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 166
deleteWidget("fortunes")
/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 99
executeController(OCA\Dashboard\Co ... {}, "deleteWidget")
/var/www/html/nextcloud/lib/private/AppFramework/App.php line 118
dispatch(OCA\Dashboard\Co ... {}, "deleteWidget")
/var/www/html/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
main("OCA\Dashboard\ ... r", "deleteWidget", OC\AppFramework\ ... {}, {_route: "dashbo ... "})
<>
__invoke({_route: "dashbo ... "})
/var/www/html/nextcloud/lib/private/Route/Router.php line 297
call_user_func(OC\AppFramework\ ... {}, {_route: "dashbo ... "})
/var/www/html/nextcloud/lib/base.php line 987
match("/apps/dashboard/widget")
/var/www/html/nextcloud/index.php line 42
handleRequest()
DELETE /nextcloud/index.php/apps/dashboard/widget
from removedmyipaddress by someusername at 2019-04-09T20:44:28+02:00
I can't get email to display properly. At first it told me IMAP was not installed. After running:
apt-get install php7.0-imap
I know see:
Kerberos error: No Kerberos credentials available (default cache: FILE:/tmp/krb5cc_33) (try running kinit) for mail.example.com
I would really love to see a working dashboard for my Nextcloud, so thank you devs :)
The Dashboard app allows users to monitor their data throw sub-elements called Widgets.
Should be "through":
The Dashboard app allows users to monitor their data through sub-elements called Widgets.
A few months ago, I installed Dashboard app using the web interface, i.e. from the nextcloud store.
I disabled and removed it, because it was not usable back then.
Now when installing/enabling Dashboard app, I get the following error message:
An exception occurred while executing 'INSERT INTO "oc_dashboard_settings"("id","key","value") VALUES(?,?,?)' with params [1, "show_activity", 1]: SQLSTATE[23505]: Unique violation: 7 ERROR: duplicate key value violates unique constraint "oc_dashboard_settings_pkey" DETAIL: Key (id)=(1) already exists.
Please note: I never cloned/downloaded anything manually. All installing/enabling/removing was done using the "Apps" section of the web interface.
Currently the Users must be part of the group "News" in oder to create and edit announcements.
See
https://github.com/nextcloud/dashboard/blob/master/lib/Controller/AnnouncementController.php
May it would be nicer, if the administrator can set a "news"-group (Feature).
Doctrine\DBAL\Exception\SyntaxErrorException: An exception occurred while executing 'CREATE TEMPORARY TABLE __temp__oc_dashboard_settings AS SELECT FROM oc_dashboard_settings': SQLSTATE[HY000]: General error: 1 near "FROM": syntax error
@daita latest of both server and gridstack branch, make npm, and using SQLite.
Hi,
I uploaded this module but I can't install, getting this error:
Could not download app dashboard
NC 12
What could be the problem?
hi everyone!
i'm trying to enable the dashboard on my nextcloud installation but i have this error
"App for id dashboard has a wrong app ID in info.xml:"
what can i do?
Thanks!
bye
After configuring the IMAP server (gmail) in personal settings, it only displays a message "Extension missing: imap" in the dashboard where the mail is supposed to be.
Nextcloud v12.0.1
Hi,
if you to run the dashboard with postgresql backend you will geht the following error.
NC: 12.0.3.3
Dashboard: 4.0.5
ErrorMessage:
Doctrine\\DBAL\\Exception\\DriverException","Message":"An exception occurred while executing 'SELECT * FROM \"oc_dashboard_announcements\" WHERE expiration >= CURDATE() ORDER BY created_at DESC LIMIT 5':\n\nSQLSTATE[42883]: Undefined function: 7 ERROR: function curdate() does not exist\nLINE 1: ... \"oc_dashboard_announcements\" WHERE expiration >= CURDATE() ...\n ^\nHINT: No function matches the given name and argument types. You might need to add explicit type casts."
Full Error Exception Message from syslog:
Sep 22 08:52:29 myHost ownCloud[1595]: {index} Exception: {"Exception":"Doctrine\\DBAL\\Exception\\DriverException","Message":"An exception occurred while executing 'SELECT * FROM \"oc_dashboard_announcements\" WHERE expiration >= CURDATE() ORDER BY created_at DESC LIMIT 5':\n\nSQLSTATE[42883]: Undefined function: 7 ERROR: function curdate() does not exist\nLINE 1: ... \"oc_dashboard_announcements\" WHERE expiration >= CURDATE() ...\n ^\nHINT: No function matches the given name and argument types. You might need to add explicit type casts.","Code":0,"Trace":"#0 \/var\/www\/nextcloud-12.0.3\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/DBALException.php(128): Doctrine\\DBAL\\Driver\\AbstractPostgreSQLDriver->convertException('An exception oc...', Object(Doctrine\\DBAL\\Driver\\PDOException))\n#1 \/var\/www\/nextcloud-12.0.3\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Statement.php(177): Doctrine\\DBAL\\DBALException::driverExceptionDuringQuery(Object(Doctrine\\DBAL\\Driver\\PDOPgSql\\Driver), Object(Doctrine\\DBAL\\Driver\\PDOException), 'SELECT * FROM \"...', Array)\n#2 \/var\/www\/nextcloud-12.0.3\/lib\/public\/AppFramework\/Db\/Mapper.php(247): Doctrine\\DBAL\\Statement->execute()\n#3 \/var\/www\/nextcloud-12.0.3\/lib\/public\/AppFramework\/Db\/Mapper.php(332): OCP\\AppFramework\\Db\\Mapper->execute('SELECT * FROM
...', Array, 5, NULL)\n#4 /var/www/nextcloud-12.0.3/apps/dashboard/lib/Db/AnnouncementMapper.php(49): OCP\AppFramework\Db\Mapper->findEntities('SELECT * FROM ...', Array, 5, NULL)\n#5 \/var\/www\/nextcloud-12.0.3\/apps\/dashboard\/lib\/Controller\/AnnouncementController.php(242): OCA\\Dashboard\\Db\\AnnouncementMapper->findAll(5)\n#6 [internal function]: OCA\\Dashboard\\Controller\\AnnouncementController->index()\n#7 \/var\/www\/nextcloud-12.0.3\/lib\/private\/AppFramework\/Http\/Dispatcher.php(160): call_user_func_array(Array, Array)\n#8 \/var\/www\/nextcloud-12.0.3\/lib\/private\/AppFramework\/Http\/Dispatcher.php(90): OC\\AppFramework\\Http\\Dispatcher->executeController(Object(OCA\\Dashboard\\Controller\\AnnouncementController), 'index')\n#9 \/var\/www\/nextcloud-12.0.3\/lib\/private\/AppFramework\/App.php(114): OC\\AppFramework\\Http\\Dispatcher->dispatch(Object(OCA\\Dashboard\\Controller\\AnnouncementController), 'index')\n#10 \/var\/www\/nextcloud-12.0.3\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php(47): OC\\AppFramework\\App::main('OCA\\\\Dashboard\\\\C...', 'index', Object(OC\\AppFramework\\DependencyInjection\\DIContainer), Array)\n#11 [internal function]: OC\\AppFramework\\Routing\\RouteActionHandler->__invoke(Array)\n#12 \/var\/www\/nextcloud-12.0.3\/lib\/private\/Route\/Router.php(299): call_user_func(Object(OC\\AppFramework\\Routing\\RouteActionHandler), Array)\n#13 \/var\/www\/nextcloud-12.0.3\/lib\/base.php(1004): OC\\Route\\Router->match('\/apps\/dashboard...')\n#14 \/var\/www\/nextcloud-12.0.3\/index.php(48): OC::handleRequest()\n#15 {main}","File":"\/var\/www\/nextcloud-12.0.3\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Driver\/AbstractPostgreSQLDriver.php","Line":91}
current solution: one group can create/edit/delete announcements. The other user read all announcements from this group.
Maybe there is a better solution:
Several announcement groups with different rights.
e.g. Group: "Global Announcements": see current solution,
group: "Team A": just the announcements of users in this group.
Maybe that can be solved a seperate app and the dashboard use this app...
flex-wrap: wrap;
Erst nach dem manuellen Einfügen sieht die Auflistung vom Dashbord bei mir so aus, wie bei eurem Screenshot.
Every time you enable or disable the app this happens:
You need to manually refresh to fix it.
cc @juliushaertl @nextcloud/javascript
I am trying to configure the widget 'settings' within the widget xml in lib\Widgets directory. I am trying to understand the syntax for the 'settings' array. I can see I need to define 'name' , 'title' . 'type' . 'default' and placeholder. Could you please give an example?
I been successful in getting the 'Configure this widget' within the widget menu but I can see the settings are not being saved to the database.
Hi all,
Clicking on an email in the dashboard points to /index.php/apps/rainloop - which redirects to /index.php/apps/files if Rainloop isn't installed as an app.
Since NextCloud 13 has a lovely email app of it's own, and there may be others available (Roundcube, etc.) it would be nice if this were a configurable option in Settings, right below where you put in the mailserver. A simple dropdown of available apps (even all of them, let the user figure out which is their Mail app) would be sufficient.
Thanks,
David.
It would be pretty awesome to have dynamic widgets in the dashboard. For example https://troolee.github.io/gridstack.js/ could be used to achieve that.
https://github.com/nextcloud/dashboard/blob/master/lib/Service/ActivityService.php#L29-L31
This is wrong and should not be done. Apps must not call each others code like this.
What you want to do is make it possible for other apps to provide dashboard panels.
Have a look at:
We have enough examples how to avoid inter-app-dependencies, but this here is just bad...
@nextcloud/designers
Hello,
I am rewriting from scratch the whole framework of the dashboard, the idea is to split each elements into Widgets, so the user can add/remove/move/resize each elements in his dashboard:
https://github.com/nextcloud/dashboard/tree/gridstack
(there is some instruction in README about the installation process of the app)
You open the left panel using the Cog-Wheel.
When you open the left panel, it 'unlocks' the widgets so you can add/remove/move/resize them. When you close the left panel, the grid is saved and you cannot move the widgets anymore.
If you open the left panel and click on a Widget, it should display the settings for this widget in the left Panel.
There is actually 2 testing widget:
The first one (Lorem Ipsum) is just a bunch of text, but let's imagine it displays your last mails: you will need to setup the IMAP server/login/password. Open the left panel, add the widget, and click on the widget while the left panel is still opened. You should see some input field, what do you think of this ?
The second widget (Disk space) have no option available.
Note: This is a WIP and in the final version you should not be able to add more than one identical widget: when a widget is enabled in your dashboard, it should be removed from the 'Add new widget' list. Right now you can spam the same widget all over the dashboard, this is an unwanted feature.
see $SUBJECT - not available in the appstore
Hello,
is this app looking for a new maintainer?
I would like to spend some time for having a dashboard in nc.
While I'm a dev-beginner, I first would like just to add some widgets.
But without having the main app running, that senseless...
So, what going on here?
Cheers
I like the desktop, but would it be possible to make something like a widget system, which can contain widgets provided from installed apps instead of coding own functions for the dashboard?
In the end the dashboard can be reduced to be the tool for displaying, adding, deleting and arranging the widgets.
The announcements on the dashboard are not shown. They appear in the "announcementcenter"-tab.
Announcement center 3.2.1
NextCloudPi v0.57.16 on RPi3
Nextcloud version 13.0.4.0
Dashboard cannot display calendar (v. 1.5.3)
An exception occurred while executing 'INSERT INTO "oc_dashboard_settings"("id","key","value") VALUES(?,?,?)' with params [1, "show_activity", 1]: SQLSTATE[23505]: Unique violation: 7 ERROR: duplicate key value violates unique constraint "oc_dashboard_settings_pkey" DETAIL: Key (id)=(1) already exists.
I try to upgrade from v5 to v6 after i upgrade nextcloud to 15 from 14.
I have an error :
An exception occurred while executing 'DROP INDEX unique_setting': SQLSTATE[42704]: Undefined object: 7 error: the index « unique_setting » not exist.
This app does not seem to be maintained:
@jospoortvliet maybe it would be better to inactivate this app. It makes Nextcloud look unprofessional.
When trying to download and activate, it throws the following error:
An exception occurred while executing 'SELECT lastval()': SQLSTATE[55000]: Object not in prerequisite state: 7 ERROR: lastval is not yet defined in this session
The current widgets seem playful, but not particularly useful. There’s:
How about these instead:
Also we should then have a better default layout to have a nicer first run experience.
More input @nextcloud/designers?
I use Nextcloud 15.0.5 with Dashboard 6.0.0 and almost no widgets are available - only Time/Date, Fortunes and Quota. Who do I get more widgets for the calendars or e-mails?
For the record @daita, as discussed on IRC:
When setting a custom color under Nextcloud > Admin > Theming > Colour, the Dashboard app does not consider that but displays the app icon as well as the separator lines in the content area in light blue.
The icon also shows this color even when another app is currently active, so it's out of line with the rest of the icons in the app menu bar.
NC 12.0.3, Dashboard App 4.0.5
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.