@nfdi4plants/arctrl 1.0.0-alpha6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ARCtrl.js +257 -0
- package/Contract/Contract.js +95 -0
- package/Contracts/Contracts.ARCtrl.js +35 -0
- package/Contracts/Contracts.ArcAssay.js +65 -0
- package/Contracts/Contracts.ArcInvestigation.js +58 -0
- package/Contracts/Contracts.ArcStudy.js +65 -0
- package/Contracts/Contracts.Git.js +91 -0
- package/FileSystem/Commit.js +18 -0
- package/FileSystem/DefaultGitignore.js +3 -0
- package/FileSystem/FileSystem.js +53 -0
- package/FileSystem/FileSystemTree.js +223 -0
- package/FileSystem/Path.js +38 -0
- package/FileSystemTree.js +51 -0
- package/ISA/ISA/ArcTypes/ArcTable.js +744 -0
- package/ISA/ISA/ArcTypes/ArcTableAux.js +1142 -0
- package/ISA/ISA/ArcTypes/ArcTables.js +380 -0
- package/ISA/ISA/ArcTypes/ArcTypes.js +2018 -0
- package/ISA/ISA/ArcTypes/CompositeCell.js +180 -0
- package/ISA/ISA/ArcTypes/CompositeColumn.js +42 -0
- package/ISA/ISA/ArcTypes/CompositeHeader.js +358 -0
- package/ISA/ISA/ArcTypes/CompositeRow.js +111 -0
- package/ISA/ISA/ArcTypes/IdentifierSetters.js +26 -0
- package/ISA/ISA/Builder/Types.js +243 -0
- package/ISA/ISA/Fable.js +50 -0
- package/ISA/ISA/Helper.js +326 -0
- package/ISA/ISA/Identifier.js +76 -0
- package/ISA/ISA/JsonTypes/AnnotationValue.js +56 -0
- package/ISA/ISA/JsonTypes/Assay.js +620 -0
- package/ISA/ISA/JsonTypes/AssayMaterials.js +39 -0
- package/ISA/ISA/JsonTypes/ColumnIndex.js +246 -0
- package/ISA/ISA/JsonTypes/Comment.js +58 -0
- package/ISA/ISA/JsonTypes/CommentList.js +139 -0
- package/ISA/ISA/JsonTypes/Component.js +158 -0
- package/ISA/ISA/JsonTypes/Data.js +55 -0
- package/ISA/ISA/JsonTypes/DataFile.js +68 -0
- package/ISA/ISA/JsonTypes/Factor.js +128 -0
- package/ISA/ISA/JsonTypes/FactorValue.js +109 -0
- package/ISA/ISA/JsonTypes/Investigation.js +204 -0
- package/ISA/ISA/JsonTypes/Material.js +66 -0
- package/ISA/ISA/JsonTypes/MaterialAttribute.js +101 -0
- package/ISA/ISA/JsonTypes/MaterialAttributeValue.js +126 -0
- package/ISA/ISA/JsonTypes/MaterialType.js +41 -0
- package/ISA/ISA/JsonTypes/OntologyAnnotation.js +219 -0
- package/ISA/ISA/JsonTypes/OntologySourceReference.js +85 -0
- package/ISA/ISA/JsonTypes/Person.js +137 -0
- package/ISA/ISA/JsonTypes/Process.js +401 -0
- package/ISA/ISA/JsonTypes/ProcessInput.js +297 -0
- package/ISA/ISA/JsonTypes/ProcessOutput.js +263 -0
- package/ISA/ISA/JsonTypes/ProcessParameterValue.js +129 -0
- package/ISA/ISA/JsonTypes/ProcessSequence.js +255 -0
- package/ISA/ISA/JsonTypes/Protocol.js +277 -0
- package/ISA/ISA/JsonTypes/ProtocolParameter.js +101 -0
- package/ISA/ISA/JsonTypes/Publication.js +105 -0
- package/ISA/ISA/JsonTypes/Sample.js +71 -0
- package/ISA/ISA/JsonTypes/Source.js +54 -0
- package/ISA/ISA/JsonTypes/Study.js +942 -0
- package/ISA/ISA/JsonTypes/StudyMaterials.js +45 -0
- package/ISA/ISA/JsonTypes/URI.js +19 -0
- package/ISA/ISA/JsonTypes/Value.js +210 -0
- package/ISA/ISA/Regex.js +588 -0
- package/ISA/ISA.Json/Assay.js +123 -0
- package/ISA/ISA.Json/Comment.js +84 -0
- package/ISA/ISA.Json/ConverterOptions.js +33 -0
- package/ISA/ISA.Json/Data.js +271 -0
- package/ISA/ISA.Json/Decode.js +46 -0
- package/ISA/ISA.Json/Factor.js +194 -0
- package/ISA/ISA.Json/GEncode.js +15 -0
- package/ISA/ISA.Json/Investigation.js +132 -0
- package/ISA/ISA.Json/Material.js +233 -0
- package/ISA/ISA.Json/Ontology.js +204 -0
- package/ISA/ISA.Json/Person.js +204 -0
- package/ISA/ISA.Json/Process.js +291 -0
- package/ISA/ISA.Json/Protocol.js +242 -0
- package/ISA/ISA.Json/Publication.js +92 -0
- package/ISA/ISA.Json/Study.js +230 -0
- package/ISA/ISA.Json/Validation/Fable.js +69 -0
- package/ISA/ISA.Json/Validation/JsonSchemaValidation.js +88 -0
- package/ISA/ISA.Json/Validation/ValidationResult.js +45 -0
- package/ISA/ISA.Spreadsheet/AnnotationTable/ArcTable.js +137 -0
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeCell.js +78 -0
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeColumn.js +59 -0
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeHeader.js +478 -0
- package/ISA/ISA.Spreadsheet/ArcAssay.js +150 -0
- package/ISA/ISA.Spreadsheet/ArcInvestigation.js +314 -0
- package/ISA/ISA.Spreadsheet/ArcStudy.js +67 -0
- package/ISA/ISA.Spreadsheet/CollectionAux.js +128 -0
- package/ISA/ISA.Spreadsheet/Metadata/Assays.js +81 -0
- package/ISA/ISA.Spreadsheet/Metadata/Comment.js +60 -0
- package/ISA/ISA.Spreadsheet/Metadata/Contacts.js +104 -0
- package/ISA/ISA.Spreadsheet/Metadata/Conversions.js +180 -0
- package/ISA/ISA.Spreadsheet/Metadata/DesignDescriptors.js +27 -0
- package/ISA/ISA.Spreadsheet/Metadata/Factors.js +85 -0
- package/ISA/ISA.Spreadsheet/Metadata/OntologyAnnotation.js +65 -0
- package/ISA/ISA.Spreadsheet/Metadata/OntologySourceReference.js +73 -0
- package/ISA/ISA.Spreadsheet/Metadata/Protocols.js +116 -0
- package/ISA/ISA.Spreadsheet/Metadata/Publication.js +96 -0
- package/ISA/ISA.Spreadsheet/Metadata/SparseTable.js +451 -0
- package/ISA/ISA.Spreadsheet/Metadata/Study.js +260 -0
- package/README.md +277 -0
- package/SemVer.js +60 -0
- package/Templates/Templates.Json.js +40 -0
- package/Templates/Templates.Spreadsheet.js +315 -0
- package/Templates/Templates.js +179 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Cells/FsCell.fs +387 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Cells/FsCell.fs.js +240 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Cells/FsCellsCollection.fs +725 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Cells/FsCellsCollection.fs.js +522 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/CellBuilder.fs +195 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/CellBuilder.fs.js +208 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/ColumnBuilder.fs +209 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/ColumnBuilder.fs.js +137 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/DSL.fs +61 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/DSL.fs.js +62 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Expression.fs +24 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Expression.fs.js +56 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Operators.fs +102 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Operators.fs.js +6 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/RowBuilder.fs +200 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/RowBuilder.fs.js +137 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/SheetBuilder.fs +139 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/SheetBuilder.fs.js +116 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/TableBuilder.fs +120 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/TableBuilder.fs.js +120 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Transform.fs +229 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Transform.fs.js +421 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Types.fs +151 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Types.fs.js +277 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/WorkbookBuilder.fs +114 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/WorkbookBuilder.fs.js +104 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsAddress.fs +177 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsAddress.fs.js +249 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsColumn.fs +200 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsColumn.fs.js +125 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsRow.fs +202 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsRow.fs.js +135 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsSpreadsheet.fableproj +58 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsWorkbook.fs +183 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsWorkbook.fs.js +138 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsWorksheet.fs +628 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsWorksheet.fs.js +398 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRange.fs +19 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRange.fs.js +41 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeAddress.fs +222 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeAddress.fs.js +235 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeBase.fs +93 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeBase.fs.js +91 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeColumn.fs +65 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeColumn.fs.js +74 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeRow.fs +22 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeRow.fs.js +40 -0
- package/fable_modules/FsSpreadsheet.4.1.0/SheetBuilder.fs +249 -0
- package/fable_modules/FsSpreadsheet.4.1.0/SheetBuilder.fs.js +325 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTable.fs +455 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTable.fs.js +310 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTableField.fs +140 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTableField.fs.js +173 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTableRow.fs +6 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTableRow.fs.js +17 -0
- package/fable_modules/FsSpreadsheet.4.1.0/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
- package/fable_modules/FsSpreadsheet.4.1.0/obj/Debug/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +19 -0
- package/fable_modules/FsSpreadsheet.4.1.0/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
- package/fable_modules/FsSpreadsheet.4.1.0/obj/Release/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +19 -0
- package/fable_modules/Thoth.Json.10.1.0/Decode.fs +1366 -0
- package/fable_modules/Thoth.Json.10.1.0/Decode.fs.js +1798 -0
- package/fable_modules/Thoth.Json.10.1.0/Encode.fs +621 -0
- package/fable_modules/Thoth.Json.10.1.0/Encode.fs.js +472 -0
- package/fable_modules/Thoth.Json.10.1.0/Extra.fs +31 -0
- package/fable_modules/Thoth.Json.10.1.0/Extra.fs.js +8 -0
- package/fable_modules/Thoth.Json.10.1.0/Thoth.Json.fableproj +30 -0
- package/fable_modules/Thoth.Json.10.1.0/Types.fs +59 -0
- package/fable_modules/Thoth.Json.10.1.0/Types.fs.js +98 -0
- package/fable_modules/Thoth.Json.10.1.0/obj/Release/netstandard2.0/Thoth.Json.AssemblyInfo.fs +19 -0
- package/fable_modules/Thoth.Json.10.1.0/package.json +5 -0
- package/fable_modules/fable-library.4.1.4/Array.d.ts +120 -0
- package/fable_modules/fable-library.4.1.4/Array.js +1204 -0
- package/fable_modules/fable-library.4.1.4/Async.d.ts +32 -0
- package/fable_modules/fable-library.4.1.4/Async.js +158 -0
- package/fable_modules/fable-library.4.1.4/AsyncBuilder.d.ts +59 -0
- package/fable_modules/fable-library.4.1.4/AsyncBuilder.js +183 -0
- package/fable_modules/fable-library.4.1.4/BigInt.d.ts +115 -0
- package/fable_modules/fable-library.4.1.4/BigInt.js +282 -0
- package/fable_modules/fable-library.4.1.4/BitConverter.d.ts +27 -0
- package/fable_modules/fable-library.4.1.4/BitConverter.js +138 -0
- package/fable_modules/fable-library.4.1.4/Boolean.d.ts +3 -0
- package/fable_modules/fable-library.4.1.4/Boolean.js +21 -0
- package/fable_modules/fable-library.4.1.4/Char.d.ts +65 -0
- package/fable_modules/fable-library.4.1.4/Char.js +169 -0
- package/fable_modules/fable-library.4.1.4/Choice.d.ts +138 -0
- package/fable_modules/fable-library.4.1.4/Choice.js +227 -0
- package/fable_modules/fable-library.4.1.4/Date.d.ts +70 -0
- package/fable_modules/fable-library.4.1.4/Date.js +451 -0
- package/fable_modules/fable-library.4.1.4/DateOffset.d.ts +63 -0
- package/fable_modules/fable-library.4.1.4/DateOffset.js +268 -0
- package/fable_modules/fable-library.4.1.4/DateOnly.d.ts +18 -0
- package/fable_modules/fable-library.4.1.4/DateOnly.js +124 -0
- package/fable_modules/fable-library.4.1.4/Decimal.d.ts +45 -0
- package/fable_modules/fable-library.4.1.4/Decimal.js +212 -0
- package/fable_modules/fable-library.4.1.4/Double.d.ts +11 -0
- package/fable_modules/fable-library.4.1.4/Double.js +46 -0
- package/fable_modules/fable-library.4.1.4/Encoding.d.ts +12 -0
- package/fable_modules/fable-library.4.1.4/Encoding.js +173 -0
- package/fable_modules/fable-library.4.1.4/Event.d.ts +31 -0
- package/fable_modules/fable-library.4.1.4/Event.js +93 -0
- package/fable_modules/fable-library.4.1.4/FSharp.Collections.d.ts +7 -0
- package/fable_modules/fable-library.4.1.4/FSharp.Collections.js +27 -0
- package/fable_modules/fable-library.4.1.4/FSharp.Core.d.ts +17 -0
- package/fable_modules/fable-library.4.1.4/FSharp.Core.js +69 -0
- package/fable_modules/fable-library.4.1.4/Global.d.ts +24 -0
- package/fable_modules/fable-library.4.1.4/Global.js +8 -0
- package/fable_modules/fable-library.4.1.4/Guid.d.ts +10 -0
- package/fable_modules/fable-library.4.1.4/Guid.js +142 -0
- package/fable_modules/fable-library.4.1.4/Int32.d.ts +28 -0
- package/fable_modules/fable-library.4.1.4/Int32.js +135 -0
- package/fable_modules/fable-library.4.1.4/List.d.ts +143 -0
- package/fable_modules/fable-library.4.1.4/List.js +1273 -0
- package/fable_modules/fable-library.4.1.4/Long.d.ts +3 -0
- package/fable_modules/fable-library.4.1.4/Long.js +46 -0
- package/fable_modules/fable-library.4.1.4/MailboxProcessor.d.ts +25 -0
- package/fable_modules/fable-library.4.1.4/MailboxProcessor.js +93 -0
- package/fable_modules/fable-library.4.1.4/Map.d.ts +178 -0
- package/fable_modules/fable-library.4.1.4/Map.js +1396 -0
- package/fable_modules/fable-library.4.1.4/MapUtil.d.ts +10 -0
- package/fable_modules/fable-library.4.1.4/MapUtil.js +112 -0
- package/fable_modules/fable-library.4.1.4/MutableMap.d.ts +52 -0
- package/fable_modules/fable-library.4.1.4/MutableMap.js +326 -0
- package/fable_modules/fable-library.4.1.4/MutableSet.d.ts +39 -0
- package/fable_modules/fable-library.4.1.4/MutableSet.js +232 -0
- package/fable_modules/fable-library.4.1.4/Native.d.ts +2 -0
- package/fable_modules/fable-library.4.1.4/Native.js +8 -0
- package/fable_modules/fable-library.4.1.4/Numeric.d.ts +19 -0
- package/fable_modules/fable-library.4.1.4/Numeric.js +71 -0
- package/fable_modules/fable-library.4.1.4/Observable.d.ts +32 -0
- package/fable_modules/fable-library.4.1.4/Observable.js +113 -0
- package/fable_modules/fable-library.4.1.4/Option.d.ts +28 -0
- package/fable_modules/fable-library.4.1.4/Option.js +96 -0
- package/fable_modules/fable-library.4.1.4/README.md +3 -0
- package/fable_modules/fable-library.4.1.4/Random.d.ts +37 -0
- package/fable_modules/fable-library.4.1.4/Random.js +170 -0
- package/fable_modules/fable-library.4.1.4/Range.d.ts +12 -0
- package/fable_modules/fable-library.4.1.4/Range.js +45 -0
- package/fable_modules/fable-library.4.1.4/Reflection.d.ts +119 -0
- package/fable_modules/fable-library.4.1.4/Reflection.js +461 -0
- package/fable_modules/fable-library.4.1.4/RegExp.d.ts +10 -0
- package/fable_modules/fable-library.4.1.4/RegExp.js +132 -0
- package/fable_modules/fable-library.4.1.4/Seq.d.ts +165 -0
- package/fable_modules/fable-library.4.1.4/Seq.js +1379 -0
- package/fable_modules/fable-library.4.1.4/Seq2.d.ts +18 -0
- package/fable_modules/fable-library.4.1.4/Seq2.js +111 -0
- package/fable_modules/fable-library.4.1.4/Set.d.ts +190 -0
- package/fable_modules/fable-library.4.1.4/Set.js +1789 -0
- package/fable_modules/fable-library.4.1.4/String.d.ts +49 -0
- package/fable_modules/fable-library.4.1.4/String.js +540 -0
- package/fable_modules/fable-library.4.1.4/System.Collections.Generic.d.ts +71 -0
- package/fable_modules/fable-library.4.1.4/System.Collections.Generic.js +307 -0
- package/fable_modules/fable-library.4.1.4/System.Text.d.ts +30 -0
- package/fable_modules/fable-library.4.1.4/System.Text.js +110 -0
- package/fable_modules/fable-library.4.1.4/SystemException.d.ts +5 -0
- package/fable_modules/fable-library.4.1.4/SystemException.js +5 -0
- package/fable_modules/fable-library.4.1.4/TimeOnly.d.ts +15 -0
- package/fable_modules/fable-library.4.1.4/TimeOnly.js +122 -0
- package/fable_modules/fable-library.4.1.4/TimeSpan.d.ts +34 -0
- package/fable_modules/fable-library.4.1.4/TimeSpan.js +177 -0
- package/fable_modules/fable-library.4.1.4/Timer.d.ts +19 -0
- package/fable_modules/fable-library.4.1.4/Timer.js +67 -0
- package/fable_modules/fable-library.4.1.4/Types.d.ts +58 -0
- package/fable_modules/fable-library.4.1.4/Types.js +208 -0
- package/fable_modules/fable-library.4.1.4/Unicode.13.0.0.d.ts +2 -0
- package/fable_modules/fable-library.4.1.4/Unicode.13.0.0.js +4 -0
- package/fable_modules/fable-library.4.1.4/Uri.d.ts +29 -0
- package/fable_modules/fable-library.4.1.4/Uri.js +142 -0
- package/fable_modules/fable-library.4.1.4/Util.d.ts +187 -0
- package/fable_modules/fable-library.4.1.4/Util.js +662 -0
- package/fable_modules/fable-library.4.1.4/lib/big.d.ts +338 -0
- package/fable_modules/fable-library.4.1.4/lib/big.js +826 -0
- package/fable_modules/fable-library.4.1.4/package.json +23 -0
- package/fable_modules/project_cracked.json +1 -0
- package/package.json +22 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
|
|
2
|
+
export const dgi = "# ----- macos rules -----\r\n# taken from https://github.com/github/gitignore/blob/main/Global/macOS.gitignore\r\n# General\r\n.DS_Store\r\n.AppleDouble\r\n.LSOverride\r\n# Icon must end with two \\r\r\nIcon\r\n# Thumbnails\r\n._*\r\n# Files that might appear in the root of a volume\r\n.DocumentRevisions-V100\r\n.fseventsd\r\n.Spotlight-V100\r\n.TemporaryItems\r\n.Trashes\r\n.VolumeIcon.icns\r\n.com.apple.timemachine.donotpresent\r\n# Directories potentially created on remote AFP share\r\n.AppleDB\r\n.AppleDesktop\r\nNetwork Trash Folder\r\nTemporary Items\r\n.apdisk\r\n# ----- windows rules -----\r\n# taken from https://github.com/github/gitignore/blob/main/Global/Windows.gitignore\r\n# Windows thumbnail cache files\r\nThumbs.db\r\nThumbs.db:encryptable\r\nehthumbs.db\r\nehthumbs_vista.db\r\n# Dump file\r\n*.stackdump\r\n# Folder config file\r\n[Dd]esktop.ini\r\n# Recycle Bin used on file shares\r\n$RECYCLE.BIN/\r\n# Windows Installer files\r\n*.cab\r\n*.msi\r\n*.msix\r\n*.msm\r\n*.msp\r\n# Windows shortcuts\r\n*.lnk\r\n# ----- linux rules -----\r\n# taken from https://github.com/github/gitignore/blob/main/Global/Linux.gitignore\r\n*~\r\n# temporary files which can be created if a process still has a handle open of a deleted file\r\n.fuse_hidden*\r\n# KDE directory preferences\r\n.directory\r\n# Linux trash folder which might appear on any partition or disk\r\n.Trash-*\r\n# .nfs files are created when an open file is removed but is still being accessed\r\n.nfs*\r\n";
|
|
3
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { defaultArg } from "../fable_modules/fable-library.4.1.4/Option.js";
|
|
2
|
+
import { FileSystemTree_$reflection, FileSystemTree } from "./FileSystemTree.js";
|
|
3
|
+
import { map, append } from "../fable_modules/fable-library.4.1.4/Array.js";
|
|
4
|
+
import { Record } from "../fable_modules/fable-library.4.1.4/Types.js";
|
|
5
|
+
import { Commit_$reflection } from "./Commit.js";
|
|
6
|
+
import { record_type, array_type } from "../fable_modules/fable-library.4.1.4/Reflection.js";
|
|
7
|
+
|
|
8
|
+
export class FileSystem extends Record {
|
|
9
|
+
constructor(Tree, History) {
|
|
10
|
+
super();
|
|
11
|
+
this.Tree = Tree;
|
|
12
|
+
this.History = History;
|
|
13
|
+
}
|
|
14
|
+
static create({ tree, history }) {
|
|
15
|
+
return new FileSystem(tree, defaultArg(history, []));
|
|
16
|
+
}
|
|
17
|
+
AddFile(path) {
|
|
18
|
+
const this$ = this;
|
|
19
|
+
return new FileSystem(this$.Tree.AddFile(path), this$.History);
|
|
20
|
+
}
|
|
21
|
+
static addFile(path) {
|
|
22
|
+
return (fs) => fs.AddFile(path);
|
|
23
|
+
}
|
|
24
|
+
static fromFilePaths(paths) {
|
|
25
|
+
const tree = FileSystemTree.fromFilePaths(paths);
|
|
26
|
+
return FileSystem.create({
|
|
27
|
+
tree: tree,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
Union(other) {
|
|
31
|
+
const this$ = this;
|
|
32
|
+
const tree = this$.Tree.Union(other.Tree);
|
|
33
|
+
const history = append(this$.History, other.History);
|
|
34
|
+
return FileSystem.create({
|
|
35
|
+
tree: tree,
|
|
36
|
+
history: history,
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
Copy() {
|
|
40
|
+
const this$ = this;
|
|
41
|
+
const fstCopy = this$.Tree.Copy();
|
|
42
|
+
const historyCopy = map((x) => x, this$.History);
|
|
43
|
+
return FileSystem.create({
|
|
44
|
+
tree: fstCopy,
|
|
45
|
+
history: historyCopy,
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function FileSystem_$reflection() {
|
|
51
|
+
return record_type("ARCtrl.FileSystem.FileSystem", [], FileSystem, () => [["Tree", FileSystemTree_$reflection()], ["History", array_type(Commit_$reflection())]]);
|
|
52
|
+
}
|
|
53
|
+
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import { unwrap, defaultArg } from "../fable_modules/fable-library.4.1.4/Option.js";
|
|
2
|
+
import { append as append_1, choose, equalsWith, tail, head, map, tryFind } from "../fable_modules/fable-library.4.1.4/Array.js";
|
|
3
|
+
import { singleton, append, delay, toArray } from "../fable_modules/fable-library.4.1.4/Seq.js";
|
|
4
|
+
import { Array_distinct, Array_groupBy } from "../fable_modules/fable-library.4.1.4/Seq2.js";
|
|
5
|
+
import { curry2, arrayHash, stringHash } from "../fable_modules/fable-library.4.1.4/Util.js";
|
|
6
|
+
import { combineMany, split } from "./Path.js";
|
|
7
|
+
import { empty, reverse, toArray as toArray_1, cons } from "../fable_modules/fable-library.4.1.4/List.js";
|
|
8
|
+
import { Union } from "../fable_modules/fable-library.4.1.4/Types.js";
|
|
9
|
+
import { union_type, array_type, string_type } from "../fable_modules/fable-library.4.1.4/Reflection.js";
|
|
10
|
+
|
|
11
|
+
export class FileSystemTree extends Union {
|
|
12
|
+
constructor(tag, fields) {
|
|
13
|
+
super();
|
|
14
|
+
this.tag = tag;
|
|
15
|
+
this.fields = fields;
|
|
16
|
+
}
|
|
17
|
+
cases() {
|
|
18
|
+
return ["File", "Folder"];
|
|
19
|
+
}
|
|
20
|
+
get Name() {
|
|
21
|
+
const this$ = this;
|
|
22
|
+
let n;
|
|
23
|
+
if (this$.tag === 1) {
|
|
24
|
+
n = this$.fields[0];
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
n = this$.fields[0];
|
|
28
|
+
}
|
|
29
|
+
return n;
|
|
30
|
+
}
|
|
31
|
+
get isFolder() {
|
|
32
|
+
const this$ = this;
|
|
33
|
+
return this$.tag === 1;
|
|
34
|
+
}
|
|
35
|
+
get isFile() {
|
|
36
|
+
const this$ = this;
|
|
37
|
+
return this$.tag === 0;
|
|
38
|
+
}
|
|
39
|
+
static get ROOT_NAME() {
|
|
40
|
+
return "root";
|
|
41
|
+
}
|
|
42
|
+
static createFile(name) {
|
|
43
|
+
return new FileSystemTree(0, [name]);
|
|
44
|
+
}
|
|
45
|
+
static createFolder(name, children) {
|
|
46
|
+
return new FileSystemTree(1, [name, defaultArg(children, [])]);
|
|
47
|
+
}
|
|
48
|
+
static createRootFolder(children) {
|
|
49
|
+
return new FileSystemTree(1, [FileSystemTree.ROOT_NAME, children]);
|
|
50
|
+
}
|
|
51
|
+
TryGetChildByName(name) {
|
|
52
|
+
const this$ = this;
|
|
53
|
+
return (this$.tag === 0) ? void 0 : tryFind((c) => (c.Name === name), this$.fields[1]);
|
|
54
|
+
}
|
|
55
|
+
static tryGetChildByName(name) {
|
|
56
|
+
return (fst) => fst.TryGetChildByName(name);
|
|
57
|
+
}
|
|
58
|
+
ContainsChildWithName(name) {
|
|
59
|
+
const this$ = this;
|
|
60
|
+
return (this$.tag === 0) ? false : this$.fields[1].some((c) => (c.Name === name));
|
|
61
|
+
}
|
|
62
|
+
static containsChildWithName(name) {
|
|
63
|
+
return (fst) => fst.ContainsChildWithName(name);
|
|
64
|
+
}
|
|
65
|
+
AddFile(path) {
|
|
66
|
+
const this$ = this;
|
|
67
|
+
const existingPaths = this$.ToFilePaths();
|
|
68
|
+
const filePaths = toArray(delay(() => append(singleton(path), delay(() => existingPaths))));
|
|
69
|
+
return FileSystemTree.fromFilePaths(filePaths);
|
|
70
|
+
}
|
|
71
|
+
static addFile(path) {
|
|
72
|
+
return (tree) => tree.AddFile(path);
|
|
73
|
+
}
|
|
74
|
+
static fromFilePaths(paths) {
|
|
75
|
+
const loop = (paths_1, parent) => {
|
|
76
|
+
const files = map((arg_1) => {
|
|
77
|
+
const arg = head(arg_1);
|
|
78
|
+
return FileSystemTree.createFile(arg);
|
|
79
|
+
}, paths_1.filter((p) => (p.length === 1)));
|
|
80
|
+
const folders = map((tupledArg) => {
|
|
81
|
+
const parent_1 = FileSystemTree.createFolder(tupledArg[0], []);
|
|
82
|
+
return loop(map(tail, tupledArg[1]), parent_1);
|
|
83
|
+
}, Array_groupBy(head, paths_1.filter((p_1) => (p_1.length > 1)), {
|
|
84
|
+
Equals: (x_3, y_2) => (x_3 === y_2),
|
|
85
|
+
GetHashCode: stringHash,
|
|
86
|
+
}));
|
|
87
|
+
if (parent.tag === 1) {
|
|
88
|
+
return FileSystemTree.createFolder(parent.fields[0], toArray(delay(() => append(files, delay(() => folders)))));
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
return parent;
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
return loop(Array_distinct(map(split, paths), {
|
|
95
|
+
Equals: (x, y) => equalsWith((x_1, y_1) => (x_1 === y_1), x, y),
|
|
96
|
+
GetHashCode: arrayHash,
|
|
97
|
+
}), FileSystemTree.createFolder(FileSystemTree.ROOT_NAME, []));
|
|
98
|
+
}
|
|
99
|
+
ToFilePaths(removeRoot) {
|
|
100
|
+
const this$ = this;
|
|
101
|
+
const res = [];
|
|
102
|
+
const loop = (output, parent) => {
|
|
103
|
+
if (parent.tag === 1) {
|
|
104
|
+
parent.fields[1].forEach((filest) => {
|
|
105
|
+
loop(cons(parent.fields[0], output), filest);
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
const arg = combineMany(toArray_1(reverse(cons(parent.fields[0], output))));
|
|
110
|
+
void (res.push(arg));
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
if (defaultArg(removeRoot, true)) {
|
|
114
|
+
if (this$.tag === 0) {
|
|
115
|
+
void (res.push(this$.fields[0]));
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
const action_1 = curry2(loop)(empty());
|
|
119
|
+
this$.fields[1].forEach(action_1);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
loop(empty(), this$);
|
|
124
|
+
}
|
|
125
|
+
return Array.from(res);
|
|
126
|
+
}
|
|
127
|
+
static toFilePaths(removeRoot) {
|
|
128
|
+
return (root) => root.ToFilePaths(unwrap(removeRoot));
|
|
129
|
+
}
|
|
130
|
+
FilterFiles(predicate) {
|
|
131
|
+
const this$ = this;
|
|
132
|
+
const loop = (parent) => {
|
|
133
|
+
if (parent.tag === 1) {
|
|
134
|
+
return new FileSystemTree(1, [parent.fields[0], choose(loop, parent.fields[1])]);
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
137
|
+
const n = parent.fields[0];
|
|
138
|
+
if (predicate(n)) {
|
|
139
|
+
return new FileSystemTree(0, [n]);
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
142
|
+
return void 0;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
return loop(this$);
|
|
147
|
+
}
|
|
148
|
+
static filterFiles(predicate) {
|
|
149
|
+
return (tree) => tree.FilterFiles(predicate);
|
|
150
|
+
}
|
|
151
|
+
FilterFolders(predicate) {
|
|
152
|
+
const this$ = this;
|
|
153
|
+
const loop = (parent) => {
|
|
154
|
+
if (parent.tag === 1) {
|
|
155
|
+
const n_1 = parent.fields[0];
|
|
156
|
+
if (predicate(n_1)) {
|
|
157
|
+
return new FileSystemTree(1, [n_1, choose(loop, parent.fields[1])]);
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
return void 0;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
else {
|
|
164
|
+
return new FileSystemTree(0, [parent.fields[0]]);
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
return loop(this$);
|
|
168
|
+
}
|
|
169
|
+
static filterFolders(predicate) {
|
|
170
|
+
return (tree) => tree.FilterFolders(predicate);
|
|
171
|
+
}
|
|
172
|
+
Filter(predicate) {
|
|
173
|
+
const this$ = this;
|
|
174
|
+
const loop = (parent) => {
|
|
175
|
+
if (parent.tag === 1) {
|
|
176
|
+
const n_1 = parent.fields[0];
|
|
177
|
+
if (predicate(n_1)) {
|
|
178
|
+
const filteredChildren = choose(loop, parent.fields[1]);
|
|
179
|
+
if (filteredChildren.length === 0) {
|
|
180
|
+
return void 0;
|
|
181
|
+
}
|
|
182
|
+
else {
|
|
183
|
+
return new FileSystemTree(1, [n_1, filteredChildren]);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
return void 0;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
else {
|
|
191
|
+
const n = parent.fields[0];
|
|
192
|
+
if (predicate(n)) {
|
|
193
|
+
return new FileSystemTree(0, [n]);
|
|
194
|
+
}
|
|
195
|
+
else {
|
|
196
|
+
return void 0;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
return loop(this$);
|
|
201
|
+
}
|
|
202
|
+
static filter(predicate) {
|
|
203
|
+
return (tree) => tree.Filter(predicate);
|
|
204
|
+
}
|
|
205
|
+
Union(otherFST) {
|
|
206
|
+
let array_1;
|
|
207
|
+
const this$ = this;
|
|
208
|
+
const arg = Array_distinct((array_1 = this$.ToFilePaths(), append_1(otherFST.ToFilePaths(), array_1)), {
|
|
209
|
+
Equals: (x, y) => (x === y),
|
|
210
|
+
GetHashCode: stringHash,
|
|
211
|
+
});
|
|
212
|
+
return FileSystemTree.fromFilePaths(arg);
|
|
213
|
+
}
|
|
214
|
+
Copy() {
|
|
215
|
+
const this$ = this;
|
|
216
|
+
return (this$.tag === 0) ? (new FileSystemTree(0, [this$.fields[0]])) : (new FileSystemTree(1, [this$.fields[0], map((c) => c.Copy(), this$.fields[1])]));
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export function FileSystemTree_$reflection() {
|
|
221
|
+
return union_type("ARCtrl.FileSystem.FileSystemTree", [], FileSystemTree, () => [[["name", string_type]], [["name", string_type], ["children", array_type(FileSystemTree_$reflection())]]]);
|
|
222
|
+
}
|
|
223
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { trim, join, trimStart, trimEnd, split as split_1 } from "../fable_modules/fable-library.4.1.4/String.js";
|
|
2
|
+
import { last, mapIndexed } from "../fable_modules/fable-library.4.1.4/Array.js";
|
|
3
|
+
|
|
4
|
+
export const seperators = ["/", "\\"];
|
|
5
|
+
|
|
6
|
+
export function split(path) {
|
|
7
|
+
return split_1(path, seperators, void 0, 3);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export function combine(path1, path2) {
|
|
11
|
+
return (trimEnd(path1, ...seperators) + "/") + trimStart(path2, ...seperators);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export function combineMany(paths) {
|
|
15
|
+
return join("/", mapIndexed((i, p) => {
|
|
16
|
+
if (i === 0) {
|
|
17
|
+
return trimEnd(p, ...seperators);
|
|
18
|
+
}
|
|
19
|
+
else if (i === (paths.length - 1)) {
|
|
20
|
+
return trimStart(p, ...seperators);
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
return trim(p, ...seperators);
|
|
24
|
+
}
|
|
25
|
+
}, paths));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export function getFileName(path) {
|
|
29
|
+
return last(split(path));
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Checks if `path` points to a file with the name `fileName`
|
|
34
|
+
*/
|
|
35
|
+
export function isFile(fileName, path) {
|
|
36
|
+
return getFileName(path) === fileName;
|
|
37
|
+
}
|
|
38
|
+
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { FileSystemTree } from "./FileSystem/FileSystemTree.js";
|
|
2
|
+
import { append } from "./fable_modules/fable-library.4.1.4/Array.js";
|
|
3
|
+
|
|
4
|
+
export function createGitKeepFile() {
|
|
5
|
+
return FileSystemTree.createFile(".gitkeep");
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export function createReadmeFile() {
|
|
9
|
+
return FileSystemTree.createFile("README.md");
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export function createEmptyFolder(name) {
|
|
13
|
+
return FileSystemTree.createFolder(name, [createGitKeepFile()]);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export function createAssayFolder(assayName) {
|
|
17
|
+
const dataset = createEmptyFolder("dataset");
|
|
18
|
+
const protocols = createEmptyFolder("protocols");
|
|
19
|
+
const readme = createReadmeFile();
|
|
20
|
+
const assayFile = FileSystemTree.createFile("isa.assay.xlsx");
|
|
21
|
+
return FileSystemTree.createFolder(assayName, [dataset, protocols, assayFile, readme]);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export function createStudyFolder(studyName) {
|
|
25
|
+
const resources = createEmptyFolder("resources");
|
|
26
|
+
const protocols = createEmptyFolder("protocols");
|
|
27
|
+
const readme = createReadmeFile();
|
|
28
|
+
const studyFile = FileSystemTree.createFile("isa.study.xlsx");
|
|
29
|
+
return FileSystemTree.createFolder(studyName, [resources, protocols, studyFile, readme]);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export function createInvestigationFile() {
|
|
33
|
+
return FileSystemTree.createFile("isa.investigation.xlsx");
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function createAssaysFolder(assays) {
|
|
37
|
+
return FileSystemTree.createFolder("assays", append([createGitKeepFile()], assays));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function createStudiesFolder(studies) {
|
|
41
|
+
return FileSystemTree.createFolder("studies", append([createGitKeepFile()], studies));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function createWorkflowsFolder(workflows) {
|
|
45
|
+
return FileSystemTree.createFolder("workflows", append([createGitKeepFile()], workflows));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function createRunsFolder(runs) {
|
|
49
|
+
return FileSystemTree.createFolder("runs", append([createGitKeepFile()], runs));
|
|
50
|
+
}
|
|
51
|
+
|