Difference between revisions of "Widget:DCTList"

From LINKS Community Center
Jump to: navigation, search
Line 273: Line 273:
 
             }
 
             }
 
         ];
 
         ];
 +
 +
        // This object defines the sort order of function categories and matches them to icons.
 +
        const fnImages = {
 +
            'Search and Monitor':  '/index.php/Special:FilePath/File:Func_search.svg',
 +
            'Post and Schedule':    '/index.php/Special:FilePath/File:Func_post.svg',
 +
            'Analysis':            '/index.php/Special:FilePath/File:Func_analysis.svg',
 +
            'Metrics':              '/index.php/Special:FilePath/File:Func_metrics.svg',
 +
            'Report':              '/index.php/Special:FilePath/File:Func_report.svg',
 +
            'Collaboration':        '/index.php/Special:FilePath/File:Func_collaboration.svg',
 +
            'Interoperability':    '/index.php/Special:FilePath/File:Func_interoperability.svg',
 +
            'Meta':                '/index.php/Special:FilePath/File:Func_meta.svg',
 +
        };
  
 
         // Helpers
 
         // Helpers
Line 360: Line 372:
 
                 return dct;
 
                 return dct;
 
             });
 
             });
 
            console.log(dctList)
 
  
 
             return { dcts: dctList, funcData: functionsData };
 
             return { dcts: dctList, funcData: functionsData };
Line 424: Line 434:
 
             const { dcts, funcData } = data[1];
 
             const { dcts, funcData } = data[1];
  
            // The keys of this object must match function category names EXACTLY.
+
 
            // This also defines the sort order of function categories.
 
            // TODO: Link images to categories directly.
 
            const fnImages = {
 
                'Search and Monitor': '/index.php/Special:FilePath/File:Func_search.svg',
 
                'Post and Schedule':  '/index.php/Special:FilePath/File:Func_post.svg',
 
                'Analysis':          '/index.php/Special:FilePath/File:Func_analysis.svg',
 
                'Metrics':            '/index.php/Special:FilePath/File:Func_metrics.svg',
 
                'Report':            '/index.php/Special:FilePath/File:Func_report.svg',
 
                'Collaboration':      '/index.php/Special:FilePath/File:Func_collaboration.svg',
 
                'Interoperability':  '/index.php/Special:FilePath/File:Func_interoperability.svg',
 
                'Meta':              '/index.php/Special:FilePath/File:Func_meta.svg',
 
            };
 
  
  

Revision as of 16:18, 16 November 2022

Development verstion of the DCT List.
Not ready for production!