Skip to content

Commit

Permalink
feat(tool,neon,app): Add dashboard
Browse files Browse the repository at this point in the history
Signed-off-by: jld3103 <jld3103yt@gmail.com>
  • Loading branch information
provokateurin committed Oct 19, 2023
1 parent 96dfed0 commit 1af2069
Show file tree
Hide file tree
Showing 13 changed files with 20 additions and 3 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions packages/app/lib/apps.dart
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import 'package:neon/models.dart';
import 'package:neon_dashboard/neon_dashboard.dart';
import 'package:neon_files/neon_files.dart';
import 'package:neon_news/neon_news.dart';
import 'package:neon_notes/neon_notes.dart';
import 'package:neon_notifications/neon_notifications.dart';

/// The collection of clients enabled for the Neon app.
final Set<AppImplementation> appImplementations = {
DashboardApp(),
FilesApp(),
NewsApp(),
NotesApp(),
Expand Down
7 changes: 7 additions & 0 deletions packages/app/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,13 @@ packages:
relative: true
source: path
version: "1.0.0"
neon_dashboard:
dependency: "direct main"
description:
path: "../neon/neon_dashboard"
relative: true
source: path
version: "1.0.0"
neon_files:
dependency: "direct main"
description:
Expand Down
4 changes: 4 additions & 0 deletions packages/app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ dependencies:
git:
url: https://github.com/nextcloud/neon
path: packages/neon/neon
neon_dashboard:
git:
url: https://github.com/nextcloud/neon
path: packages/neon/neon_dashboard
neon_files:
git:
url: https://github.com/nextcloud/neon
Expand Down
4 changes: 3 additions & 1 deletion packages/app/pubspec_overrides.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# melos_managed_dependency_overrides: dynamite_runtime,file_icons,neon,neon_files,neon_news,neon_notes,neon_notifications,nextcloud,sort_box,neon_lints
# melos_managed_dependency_overrides: dynamite_runtime,file_icons,neon,neon_files,neon_news,neon_notes,neon_notifications,nextcloud,sort_box,neon_lints,neon_dashboard
dependency_overrides:
dynamite_runtime:
path: ../dynamite/dynamite_runtime
file_icons:
path: ../file_icons
neon:
path: ../neon/neon
neon_dashboard:
path: ../neon/neon_dashboard
neon_files:
path: ../neon/neon_files
neon_lints:
Expand Down
2 changes: 1 addition & 1 deletion packages/neon/neon/lib/l10n/en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"@@locale": "en",
"nextcloud": "Nextcloud",
"nextcloudLogo": "Nextcloud logo",
"appImplementationName": "{app, select, nextcloud{Nextcloud} core{Server} files{Files} news{News} notes{Notes} notifications{Notifications} other{}}",
"appImplementationName": "{app, select, nextcloud{Nextcloud} core{Server} dashboard{Dashboard} files{Files} news{News} notes{Notes} notifications{Notifications} other{}}",
"@appImplementationName": {
"placeholders": {
"app": {}
Expand Down
2 changes: 1 addition & 1 deletion packages/neon/neon/lib/l10n/localizations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ abstract class NeonLocalizations {
/// No description provided for @appImplementationName.
///
/// In en, this message translates to:
/// **'{app, select, nextcloud{Nextcloud} core{Server} files{Files} news{News} notes{Notes} notifications{Notifications} other{}}'**
/// **'{app, select, nextcloud{Nextcloud} core{Server} dashboard{Dashboard} files{Files} news{News} notes{Notes} notifications{Notifications} other{}}'**
String appImplementationName(String app);

/// No description provided for @loginAgain.
Expand Down
1 change: 1 addition & 0 deletions packages/neon/neon/lib/l10n/localizations_en.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class NeonLocalizationsEn extends NeonLocalizations {
{
'nextcloud': 'Nextcloud',
'core': 'Server',
'dashboard': 'Dashboard',
'files': 'Files',
'news': 'News',
'notes': 'Notes',
Expand Down
1 change: 1 addition & 0 deletions tool/generate-assets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ done
precompile_assets
)

copy_app_svg dashboard external/nextcloud-server/apps/dashboard
copy_app_svg files external/nextcloud-server/apps/files
copy_app_svg news external/nextcloud-news
copy_app_svg notes external/nextcloud-notes
Expand Down

0 comments on commit 1af2069

Please sign in to comment.