mirror of
https://github.com/jagandeepbrar/lunasea.git
synced 2026-08-31 04:32:32 +00:00
chore(wake_on_lan): refactor wake on LAN integration
[skip ci]
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
// ignore: always_use_package_imports
|
||||
import '../wake_on_lan.dart';
|
||||
import 'package:lunasea/api/wake_on_lan/wake_on_lan.dart';
|
||||
|
||||
bool isPlatformSupported() => false;
|
||||
LunaWakeOnLAN getWakeOnLAN() =>
|
||||
@@ -1,12 +1,10 @@
|
||||
import 'package:lunasea/api/wake_on_lan/wake_on_lan.dart';
|
||||
import 'package:lunasea/database/models/profile.dart';
|
||||
import 'package:lunasea/vendor.dart';
|
||||
import 'package:lunasea/widgets/ui.dart';
|
||||
import 'package:lunasea/system/logger.dart';
|
||||
import 'package:wake_on_lan/wake_on_lan.dart';
|
||||
|
||||
// ignore: always_use_package_imports
|
||||
import '../wake_on_lan.dart';
|
||||
|
||||
bool isPlatformSupported() => true;
|
||||
LunaWakeOnLAN getWakeOnLAN() => IO();
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// ignore: always_use_package_imports
|
||||
import '../wake_on_lan.dart';
|
||||
import 'package:lunasea/api/wake_on_lan/wake_on_lan.dart';
|
||||
|
||||
bool isPlatformSupported() => false;
|
||||
LunaWakeOnLAN getWakeOnLAN() =>
|
||||
@@ -18,7 +18,7 @@ import 'package:lunasea/modules/nzbget.dart';
|
||||
import 'package:lunasea/modules/tautulli.dart';
|
||||
|
||||
import 'package:lunasea/modules/dashboard/core/state.dart' as dashboard_state;
|
||||
import 'package:lunasea/modules/wake_on_lan/api/wake_on_lan.dart';
|
||||
import 'package:lunasea/api/wake_on_lan/wake_on_lan.dart';
|
||||
import 'package:lunasea/system/flavor.dart';
|
||||
|
||||
part 'modules.g.dart';
|
||||
|
||||
@@ -5,7 +5,7 @@ import 'package:lunasea/database/models/profile.dart';
|
||||
import 'package:lunasea/database/tables/lunasea.dart';
|
||||
import 'package:lunasea/vendor.dart';
|
||||
import 'package:lunasea/widgets/ui.dart';
|
||||
import 'package:lunasea/modules/wake_on_lan/api/wake_on_lan.dart';
|
||||
import 'package:lunasea/api/wake_on_lan/wake_on_lan.dart';
|
||||
import 'package:lunasea/modules/dashboard/routes/dashboard/widgets/navigation_bar.dart';
|
||||
|
||||
class ModulesPage extends StatefulWidget {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:lunasea/core.dart';
|
||||
import 'package:lunasea/modules/wake_on_lan/api/wake_on_lan.dart';
|
||||
import 'package:lunasea/api/wake_on_lan/wake_on_lan.dart';
|
||||
|
||||
class LunaDrawer extends StatelessWidget {
|
||||
final String page;
|
||||
|
||||
Reference in New Issue
Block a user