Browse Source

feat(tool,neon,app): Add dashboard

Signed-off-by: jld3103 <jld3103yt@gmail.com>
pull/940/head
jld3103 1 year ago
parent
commit
1af20691df
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. BIN
      packages/app/android/app/src/main/res/mipmap-hdpi/app_dashboard.png
  2. BIN
      packages/app/android/app/src/main/res/mipmap-mdpi/app_dashboard.png
  3. BIN
      packages/app/android/app/src/main/res/mipmap-xhdpi/app_dashboard.png
  4. BIN
      packages/app/android/app/src/main/res/mipmap-xxhdpi/app_dashboard.png
  5. BIN
      packages/app/android/app/src/main/res/mipmap-xxxhdpi/app_dashboard.png
  6. 2
      packages/app/lib/apps.dart
  7. 7
      packages/app/pubspec.lock
  8. 4
      packages/app/pubspec.yaml
  9. 4
      packages/app/pubspec_overrides.yaml
  10. 2
      packages/neon/neon/lib/l10n/en.arb
  11. 2
      packages/neon/neon/lib/l10n/localizations.dart
  12. 1
      packages/neon/neon/lib/l10n/localizations_en.dart
  13. 1
      tool/generate-assets.sh

BIN
packages/app/android/app/src/main/res/mipmap-hdpi/app_dashboard.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
packages/app/android/app/src/main/res/mipmap-mdpi/app_dashboard.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
packages/app/android/app/src/main/res/mipmap-xhdpi/app_dashboard.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

BIN
packages/app/android/app/src/main/res/mipmap-xxhdpi/app_dashboard.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

BIN
packages/app/android/app/src/main/res/mipmap-xxxhdpi/app_dashboard.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

2
packages/app/lib/apps.dart

@ -1,4 +1,5 @@
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';
@ -6,6 +7,7 @@ import 'package:neon_notifications/neon_notifications.dart';
/// The collection of clients enabled for the Neon app.
final Set<AppImplementation> appImplementations = {
DashboardApp(),
FilesApp(),
NewsApp(),
NotesApp(),

7
packages/app/pubspec.lock

@ -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:

4
packages/app/pubspec.yaml

@ -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

4
packages/app/pubspec_overrides.yaml

@ -1,4 +1,4 @@
# 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
@ -6,6 +6,8 @@ dependency_overrides:
path: ../file_icons
neon:
path: ../neon/neon
neon_dashboard:
path: ../neon/neon_dashboard
neon_files:
path: ../neon/neon_files
neon_lints:

2
packages/neon/neon/lib/l10n/en.arb

@ -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": {}

2
packages/neon/neon/lib/l10n/localizations.dart

@ -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.

1
packages/neon/neon/lib/l10n/localizations_en.dart

@ -19,6 +19,7 @@ class NeonLocalizationsEn extends NeonLocalizations {
{
'nextcloud': 'Nextcloud',
'core': 'Server',
'dashboard': 'Dashboard',
'files': 'Files',
'news': 'News',
'notes': 'Notes',

1
tool/generate-assets.sh

@ -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

Loading…
Cancel
Save