admin: Add link to forge

This commit is contained in:
nemunaire 2022-05-24 21:25:51 +02:00
parent 80917ae436
commit 2c76b5c7a3
7 changed files with 129 additions and 3 deletions

View file

@ -6,6 +6,7 @@ import (
"encoding/base32"
"fmt"
"io"
"net/url"
"os"
"path"
"strings"
@ -46,6 +47,12 @@ type DirectAccessImporter interface {
GetLocalPath(p ...string) string
}
// ForgeLinkedImporter abstracts importer that are linked to a forge
type ForgeLinkedImporter interface {
GetThemeLink(th *fic.Theme) (*url.URL, error)
GetExerciceLink(e *fic.Exercice) (*url.URL, error)
}
// GlobalImporter stores the main importer instance to use for global imports.
var GlobalImporter Importer