diff --git a/javascript/__globals.js b/javascript/__globals.js new file mode 100644 index 0000000..68e9493 --- /dev/null +++ b/javascript/__globals.js @@ -0,0 +1,47 @@ +// Core components +var CFG = null; +var tagBasePath = ""; + +// Tag completion data loaded from files +var allTags = []; +var translations = new Map(); +// Same for tag-likes +var wildcardFiles = []; +var wildcardExtFiles = []; +var yamlWildcards = []; +var embeddings = []; +var hypernetworks = []; +var loras = []; + +// Selected model info for black/whitelisting +var currentModelHash = ""; +var currentModelName = ""; + +// Current results +var results = []; +var resultCount = 0; + +// Relevant for parsing +var previousTags = []; +var tagword = ""; +var originalTagword = ""; + +// Tag selection for keyboard navigation +var selectedTag = null; +var oldSelectedTag = null; + +// UMI +var umiPreviousTags = []; + +/// Extendability system: +/// Provides "queues" for other files of the script (or really any js) +/// to add functions to be called at certain points in the script. +/// Similar to a callback system, but primitive. + +// Queues +var afterInsertQueue = []; +var afterSetupQueue = []; +var afterConfigChangeQueue = []; + +// List of parsers to try +var parsers = []; \ No newline at end of file diff --git a/javascript/_globals.js b/javascript/_globals.js deleted file mode 100644 index c49757e..0000000 --- a/javascript/_globals.js +++ /dev/null @@ -1,24 +0,0 @@ -var CFG = null; - -var tagBasePath = ""; -var allTags = []; -var translations = new Map(); - -var currentModelHash = ""; -var currentModelName = ""; - -var wildcardFiles = []; -var wildcardExtFiles = []; -var yamlWildcards = []; -var umiPreviousTags = []; -var embeddings = []; -var hypernetworks = []; -var loras = []; -var results = []; -var tagword = ""; -var originalTagword = ""; -var resultCount = 0; - -var selectedTag = null; -var oldSelectedTag = null; -var previousTags = []; \ No newline at end of file