Rename globals file to ensure it's loaded first

This commit is contained in:
Dominik Reh
2023-01-28 22:57:58 +01:00
parent e00199cf06
commit a831592c3c
2 changed files with 47 additions and 24 deletions

47
javascript/__globals.js Normal file
View File

@@ -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 = [];

View File

@@ -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 = [];