Unified Import Source configuration, added concurrency prevention and combined UI
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
package com.majinnaibu.monstercards.data;
|
||||
|
||||
import com.majinnaibu.monstercards.models.GitRepositorySource;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class GitRepositoryConfig {
|
||||
public static final List<GitRepositorySource> SOURCES = new ArrayList<>();
|
||||
|
||||
static {
|
||||
SOURCES.add(new GitRepositorySource(
|
||||
"pf2e_foundry",
|
||||
"Pathfinder 2e Foundry VTT",
|
||||
"foundryvtt",
|
||||
"https://github.com/foundryvtt/pf2e",
|
||||
"https://github.com/foundryvtt/pf2e/archive/refs/heads/master.zip",
|
||||
"com.majinnaibu.monstercards.importers.Pf2eImporter",
|
||||
".json"
|
||||
));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.majinnaibu.monstercards.data;
|
||||
|
||||
import com.majinnaibu.monstercards.models.ImportSource;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class ImportConfig {
|
||||
public static final List<ImportSource> SOURCES = new ArrayList<>();
|
||||
|
||||
static {
|
||||
SOURCES.add(new ImportSource(
|
||||
"open5e",
|
||||
"Open5e.com System Reference Document",
|
||||
"Open5e",
|
||||
"https://open5e.com",
|
||||
ImportSource.ImportType.OPEN5E_API,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
));
|
||||
|
||||
SOURCES.add(new ImportSource(
|
||||
"pf2e_foundry",
|
||||
"Pathfinder 2e Foundry VTT",
|
||||
"foundryvtt",
|
||||
"https://github.com/foundryvtt/pf2e",
|
||||
ImportSource.ImportType.GIT_ARCHIVE,
|
||||
"https://github.com/foundryvtt/pf2e/archive/refs/heads/master.zip",
|
||||
"com.majinnaibu.monstercards.importers.Pf2eImporter",
|
||||
".json"
|
||||
));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user