mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 07:10:41 +00:00
Fix #319 keep unknown files when importing and downloading a project
This commit is contained in:
@@ -13,6 +13,7 @@ export type Project = {
|
||||
namespace?: string,
|
||||
version?: VersionId,
|
||||
files: ProjectFile[],
|
||||
unknownFiles?: UnknownFile[],
|
||||
}
|
||||
export const DRAFT_PROJECT: Project = {
|
||||
name: 'Drafts',
|
||||
@@ -26,6 +27,11 @@ export type ProjectFile = {
|
||||
data: any,
|
||||
}
|
||||
|
||||
export type UnknownFile = {
|
||||
path: string,
|
||||
data: string,
|
||||
}
|
||||
|
||||
export const FilePatterns = [
|
||||
'worldgen/[a-z_]+',
|
||||
'tags/worldgen/[a-z_]+',
|
||||
|
||||
Reference in New Issue
Block a user