mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-02 04:47:01 +08:00
Make MultiRepos Pro only
This commit is contained in:
@ -300,6 +300,7 @@ drawer:
|
|||||||
feedback: Feedback
|
feedback: Feedback
|
||||||
bug: Bug Report
|
bug: Bug Report
|
||||||
remote: No Git Host
|
remote: No Git Host
|
||||||
|
addRepo: Add Repository
|
||||||
setup:
|
setup:
|
||||||
autoconfigure:
|
autoconfigure:
|
||||||
title: We need permission to perform the following steps
|
title: We need permission to perform the following steps
|
||||||
|
@ -41,11 +41,11 @@ class Features {
|
|||||||
Feature.singleJournalEntry,
|
Feature.singleJournalEntry,
|
||||||
Feature.configureBottomMenuBar,
|
Feature.configureBottomMenuBar,
|
||||||
Feature.customFileNamePerEditor,
|
Feature.customFileNamePerEditor,
|
||||||
|
Feature.multiRepos,
|
||||||
];
|
];
|
||||||
|
|
||||||
static final inProgress = <String>[
|
static final inProgress = <String>[
|
||||||
tr("feature.graphVisualization"),
|
tr("feature.graphVisualization"),
|
||||||
tr("feature.mutliRepos"),
|
|
||||||
tr("feature.gitLog"),
|
tr("feature.gitLog"),
|
||||||
tr("feature.markdownToolbar"),
|
tr("feature.markdownToolbar"),
|
||||||
];
|
];
|
||||||
@ -355,6 +355,14 @@ class Feature {
|
|||||||
"",
|
"",
|
||||||
true,
|
true,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
static final multiRepos = Feature(
|
||||||
|
"multiRepos",
|
||||||
|
DateTime(2021, 02, 20),
|
||||||
|
tr("feature.mutliRepos"),
|
||||||
|
"",
|
||||||
|
true,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Feature Adding checklist
|
// Feature Adding checklist
|
||||||
|
@ -13,11 +13,13 @@ import 'package:url_launcher/url_launcher.dart';
|
|||||||
|
|
||||||
import 'package:gitjournal/analytics.dart';
|
import 'package:gitjournal/analytics.dart';
|
||||||
import 'package:gitjournal/app_settings.dart';
|
import 'package:gitjournal/app_settings.dart';
|
||||||
|
import 'package:gitjournal/features.dart';
|
||||||
import 'package:gitjournal/repository.dart';
|
import 'package:gitjournal/repository.dart';
|
||||||
import 'package:gitjournal/repository_manager.dart';
|
import 'package:gitjournal/repository_manager.dart';
|
||||||
import 'package:gitjournal/utils.dart';
|
import 'package:gitjournal/utils.dart';
|
||||||
import 'package:gitjournal/utils/logger.dart';
|
import 'package:gitjournal/utils/logger.dart';
|
||||||
import 'package:gitjournal/widgets/app_drawer_header.dart';
|
import 'package:gitjournal/widgets/app_drawer_header.dart';
|
||||||
|
import 'package:gitjournal/widgets/pro_overlay.dart';
|
||||||
|
|
||||||
class AppDrawer extends StatefulWidget {
|
class AppDrawer extends StatefulWidget {
|
||||||
@override
|
@override
|
||||||
@ -64,15 +66,18 @@ class _AppDrawerState extends State<AppDrawer>
|
|||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
const SizedBox(height: 8),
|
const SizedBox(height: 8),
|
||||||
for (var id in repoIds) RepoTile(id),
|
for (var id in repoIds) RepoTile(id),
|
||||||
_buildDrawerTile(
|
ProOverlay(
|
||||||
context,
|
feature: Feature.multiRepos,
|
||||||
icon: Icons.add,
|
child: _buildDrawerTile(
|
||||||
title: 'Add Repository',
|
context,
|
||||||
onTap: () {
|
icon: Icons.add,
|
||||||
repoManager.addRepo();
|
title: tr('drawer.addRepo'),
|
||||||
Navigator.pop(context);
|
onTap: () {
|
||||||
},
|
repoManager.addRepo();
|
||||||
selected: false,
|
Navigator.pop(context);
|
||||||
|
},
|
||||||
|
selected: false,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
divider,
|
divider,
|
||||||
],
|
],
|
||||||
|
Reference in New Issue
Block a user