mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 10:17:16 +08:00
Move metadata configuration features from Pro to Basic
Configuring how the metadata should be saved really seems like more of a basic feature as it allows you test GitJournal's compatibility with your favorite desktop client or for static website generation.
This commit is contained in:
@ -3,6 +3,7 @@
|
|||||||
improvements:
|
improvements:
|
||||||
- text: "Allow SSH Keys to be loaded from the FS - #74"
|
- text: "Allow SSH Keys to be loaded from the FS - #74"
|
||||||
image: ssh_key_file.jpeg
|
image: ssh_key_file.jpeg
|
||||||
|
- text: "Move metadata configuration features from Pro to Basic"
|
||||||
bugs:
|
bugs:
|
||||||
- text: "Dark Theme: Render checkboxes in a lighter color"
|
- text: "Dark Theme: Render checkboxes in a lighter color"
|
||||||
- text: "Fix Relative Parent links not working - #256"
|
- text: "Fix Relative Parent links not working - #256"
|
||||||
|
@ -127,7 +127,7 @@ class Feature {
|
|||||||
DateTime(2020, 01, 05),
|
DateTime(2020, 01, 05),
|
||||||
tr("feature.yamlModifiedKey"),
|
tr("feature.yamlModifiedKey"),
|
||||||
"",
|
"",
|
||||||
true,
|
false,
|
||||||
);
|
);
|
||||||
|
|
||||||
static final noteSorting = Feature(
|
static final noteSorting = Feature(
|
||||||
@ -287,7 +287,7 @@ class Feature {
|
|||||||
DateTime(2020, 07, 30),
|
DateTime(2020, 07, 30),
|
||||||
tr("feature.metaDataTitle"),
|
tr("feature.metaDataTitle"),
|
||||||
"",
|
"",
|
||||||
true,
|
false,
|
||||||
);
|
);
|
||||||
|
|
||||||
static final yamlCreatedKey = Feature(
|
static final yamlCreatedKey = Feature(
|
||||||
@ -295,7 +295,7 @@ class Feature {
|
|||||||
DateTime(2020, 08, 02),
|
DateTime(2020, 08, 02),
|
||||||
tr("feature.yamlCreatedKey"),
|
tr("feature.yamlCreatedKey"),
|
||||||
"",
|
"",
|
||||||
true,
|
false,
|
||||||
);
|
);
|
||||||
|
|
||||||
static final yamlTagsKey = Feature(
|
static final yamlTagsKey = Feature(
|
||||||
@ -303,7 +303,7 @@ class Feature {
|
|||||||
DateTime(2020, 08, 06),
|
DateTime(2020, 08, 06),
|
||||||
tr("feature.yamlTagsKey"),
|
tr("feature.yamlTagsKey"),
|
||||||
"",
|
"",
|
||||||
true,
|
false,
|
||||||
);
|
);
|
||||||
|
|
||||||
static final customMetaData = Feature(
|
static final customMetaData = Feature(
|
||||||
|
@ -88,82 +88,70 @@ class _NoteMetadataSettingsScreenState
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
ProOverlay(
|
ListPreference(
|
||||||
feature: Feature.yamlModifiedKey,
|
title: tr("settings.noteMetaData.modified"),
|
||||||
child: ListPreference(
|
options: [
|
||||||
title: tr("settings.noteMetaData.modified"),
|
"modified",
|
||||||
options: [
|
"mod",
|
||||||
"modified",
|
"lastmodified",
|
||||||
"mod",
|
"lastmod",
|
||||||
"lastmodified",
|
],
|
||||||
"lastmod",
|
currentOption: settings.yamlModifiedKey,
|
||||||
],
|
onChange: (String newVal) {
|
||||||
currentOption: settings.yamlModifiedKey,
|
setState(() {
|
||||||
onChange: (String newVal) {
|
settings.yamlModifiedKey = newVal;
|
||||||
setState(() {
|
settings.save();
|
||||||
settings.yamlModifiedKey = newVal;
|
});
|
||||||
settings.save();
|
},
|
||||||
});
|
enabled: settings.yamlHeaderEnabled,
|
||||||
},
|
|
||||||
enabled: settings.yamlHeaderEnabled,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
ProOverlay(
|
ListPreference(
|
||||||
feature: Feature.yamlCreatedKey,
|
title: tr("settings.noteMetaData.created"),
|
||||||
child: ListPreference(
|
options: [
|
||||||
title: tr("settings.noteMetaData.created"),
|
"created",
|
||||||
options: [
|
"date",
|
||||||
"created",
|
],
|
||||||
"date",
|
currentOption: settings.yamlCreatedKey,
|
||||||
],
|
onChange: (String newVal) {
|
||||||
currentOption: settings.yamlCreatedKey,
|
setState(() {
|
||||||
onChange: (String newVal) {
|
settings.yamlCreatedKey = newVal;
|
||||||
setState(() {
|
settings.save();
|
||||||
settings.yamlCreatedKey = newVal;
|
});
|
||||||
settings.save();
|
},
|
||||||
});
|
enabled: settings.yamlHeaderEnabled,
|
||||||
},
|
|
||||||
enabled: settings.yamlHeaderEnabled,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
ProOverlay(
|
ListPreference(
|
||||||
feature: Feature.yamlTagsKey,
|
title: tr("settings.noteMetaData.tags"),
|
||||||
child: ListPreference(
|
options: [
|
||||||
title: tr("settings.noteMetaData.tags"),
|
"tags",
|
||||||
options: [
|
"categories",
|
||||||
"tags",
|
],
|
||||||
"categories",
|
currentOption: settings.yamlTagsKey,
|
||||||
],
|
onChange: (String newVal) {
|
||||||
currentOption: settings.yamlTagsKey,
|
setState(() {
|
||||||
onChange: (String newVal) {
|
settings.yamlTagsKey = newVal;
|
||||||
setState(() {
|
settings.save();
|
||||||
settings.yamlTagsKey = newVal;
|
});
|
||||||
settings.save();
|
},
|
||||||
});
|
enabled: settings.yamlHeaderEnabled,
|
||||||
},
|
|
||||||
enabled: settings.yamlHeaderEnabled,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
ProOverlay(
|
ListPreference(
|
||||||
feature: Feature.metaDataTitle,
|
title: tr("settings.noteMetaData.titleMetaData.title"),
|
||||||
child: ListPreference(
|
options: [
|
||||||
title: tr("settings.noteMetaData.titleMetaData.title"),
|
tr("settings.noteMetaData.titleMetaData.fromH1"),
|
||||||
options: [
|
if (settings.yamlHeaderEnabled)
|
||||||
tr("settings.noteMetaData.titleMetaData.fromH1"),
|
tr("settings.noteMetaData.titleMetaData.fromYaml"),
|
||||||
if (settings.yamlHeaderEnabled)
|
],
|
||||||
tr("settings.noteMetaData.titleMetaData.fromYaml"),
|
currentOption: settings.saveTitleInH1
|
||||||
],
|
? tr("settings.noteMetaData.titleMetaData.fromH1")
|
||||||
currentOption: settings.saveTitleInH1
|
: tr("settings.noteMetaData.titleMetaData.fromYaml"),
|
||||||
? tr("settings.noteMetaData.titleMetaData.fromH1")
|
onChange: (String newVal) {
|
||||||
: tr("settings.noteMetaData.titleMetaData.fromYaml"),
|
setState(() {
|
||||||
onChange: (String newVal) {
|
settings.saveTitleInH1 =
|
||||||
setState(() {
|
newVal == tr("settings.noteMetaData.titleMetaData.fromH1");
|
||||||
settings.saveTitleInH1 =
|
settings.save();
|
||||||
newVal == tr("settings.noteMetaData.titleMetaData.fromH1");
|
});
|
||||||
settings.save();
|
},
|
||||||
});
|
|
||||||
},
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
ProOverlay(
|
ProOverlay(
|
||||||
feature: Feature.customMetaData,
|
feature: Feature.customMetaData,
|
||||||
|
Reference in New Issue
Block a user