Gadgets 10

0 views
Skip to first unread message

Anais Wachowski

unread,
Aug 5, 2024, 10:20:50 AM8/5/24
to thercofilind
Gadgetsare made up of JavaScript and/or CSS Snippets located on pages in the MediaWiki namespace.Each gadget is defined by a line in MediaWiki:Gadgets-definition, providing a name and description for the gadget, and a list of the JS and CSS snippets that it uses (see the Usage section below).

Since Gadgets reside in the MediaWiki namespace (the list defining the gadgets as well as the actual code snippets), only sysops (interface admins from 1.32) can edit the code.This is as it should be: only users especially trusted by the wiki community should be able to edit JavaScript code that is used by other users, since JavaScript can easily be used to hijack accounts or spy on people.


Once MediaWiki:Gadgets-definition is created with at least one valid gadget, a new "Gadgets" section will be shown on Special:Preferences for all users. Users can enable the gadgets they would like to use there.An overview of gadgets currently defined by MediaWiki:Gadgets-definition is also rendered on Special:Gadgets, along with helpful links to the relevant localisation and script/style pages for easy creation or editing.Statistics about gadget preferences are available at Special:GadgetUsage.


The first field ("mygadget" in the example) is the gadget's internal name. The label for the preferences page comes from an interface message page (MediaWiki:Gadget-mygadget) where the proper name and a short description can be written, which also allows wikitext markup to be used.


The ResourceLoader flag is required unless the gadget contains only styles.Options that are "flags" only need to have their name written to be turned on.Options that need a value are followed by an equals sign and a comma-separated list of values.All whitespace is optional and may be omitted.


There are two ways to define gadgets depending on the $wgGadgetsRepoClass.If It is 'MediaWikiGadgetsDefinitionRepo' (the default value), the list of available gadgets is defined on MediaWiki:Gadgets-definition.In an alternative way, Gadget definitions are defined on pages in the Gadget definition namespace when $wgGadgetsRepoClass is set to 'GadgetDefinitionNamespaceRepo'.(On MediaWiki 1.39+, the value to use instead is '\\MediaWiki\\Extension\\Gadgets\\GadgetDefinitionNamespaceRepo'.)


Here, we ask ResourceLoader to load modules jquery.ui and jquery.effects.clip with mygadget.Note that gadgets can't depend on scripts from pages, static files or external URLs, only on modules already registered in ResourceLoader.To make a script from a page depend on another script from a page, each should be a gadget which registers itself as a module in ResourceLoader, then they can be made to have dependencies using the following syntax:


You can add the following in your LocalSettings.php to provide the appropriate permissions for users who are within the interface-admin group.Editing pages in the Gadget namespace requires the gadgets-edit right and editing pages in the Gadget definition namespace requires the gadgets-definition-edit right.


The remaining fields on the definition line refer to the JavaScript, CSS or JSON source pages that makes up the gadget module.These are stored in the MediaWiki namespace as interface messages (MediaWiki:Gadget-mygadget.js and MediaWiki:Gadget-mygadget.css in the example).The page names must end with ".css", ".js", or ".json" respectively.


The list of gadgets in MediaWiki:Gadgets-definition can be broken into sections using lines that start and end with two or more "=" (equals) characters, enclosing the name of a system message that defines the section's name, for example:


The etymology of the word is disputed. The word first appears as reference to an 18th-century tool in glassmaking that was developed as a spring pontil.[3] As stated in the glass dictionary published by the Corning Museum of Glass, a gadget is a "metal rod with a spring clip that grips the foot of a vessel and so avoids the use of a pontil". Gadgets were first used in the late 18th century.[4] According to the Oxford English Dictionary, there is anecdotal evidence for the use of "gadget" as a placeholder name for a technical item whose precise name one can't remember since the 1850s; with Robert Brown's 1886 book Spunyarn and Spindrift, A sailor boy's log of a voyage out and home in a China tea-clipper containing the earliest known usage in print.[5]


A widely circulated story holds that the word gadget was "invented" when Gaget, Gauthier & Cie, the company behind the repouss construction of the Statue of Liberty (1886), made a small-scale version of the monument and named it after their firm; however this contradicts the evidence that the word was already used before in nautical circles, and the fact that it did not become popular, at least in the US, until after World War I.[5] Other sources cite a derivation from the French gchette which has been applied to various pieces of a firing mechanism, or the French gage, a small tool or accessory.[5]


A discussion arose at the Plymouth meeting of the Devonshire Association in 1916 when it was suggested that this word should be recorded in the list of local verbal provincialisms. Several members dissented from its inclusion on the ground that it is in common use throughout the country; and a naval officer who was present said that it has for years been a popular expression in the service for a tool or implement, the exact name of which is unknown or has for the moment been forgotten. I have also frequently heard it applied by motor-cycle friends to the collection of fitments to be seen on motor cycles. 'His handle-bars are smothered in gadgets' refers to such things as speedometers, mirrors, levers, badges, mascots, &c., attached to the steering handles. The 'jigger' or short-rest used in billiards is also often called a 'gadget'; and the name has been applied by local platelayers to the 'gauge' used to test the accuracy of their work. In fact, to borrow from present-day Army slang, 'gadget' is applied to 'any old thing.'[6]


By the second half of the twentieth century, the term "gadget" had taken on the connotations of compactness and mobility. In the 1965 essay "The Great Gizmo" (a term used interchangeably with "gadget" throughout the essay), the architectural and design critic Reyner Banham defines the item as:


In the software industry, Gadget refers to computer programs that provide services without needing an independent application to be launched for each one, but instead run in an environment that manages multiple gadgets. There are several implementations based on existing software development techniques, like JavaScript, form input, and various image formats. Proprietary formats include Google Desktop, Google Gadgets, Microsoft Gadgets, the AmigaOS Workbench and dashboard software Apple Widgets.


The X11[8] windows system 'Intrinsics'[9] also defines gadgets and their relationship to widgets (buttons, labels, etc.). The gadget was a windowless widget which was supposed to improve the performance of the application by reducing the memory load on the X server. A gadget would use the Window id of its parent widget and had no children of its own.


It is not known whether other software companies are explicitly drawing on that inspiration when featuring the word in names of their technologies or simply referring to the generic meaning. The word widget is older in this context. In the movie "Back to School" from 1986 by Alan Metter, there is a scene where an economics professor Dr. Barbay, wants to start for educational purposes a fictional company that produces "widgets: It's a fictional product."


I also chose to use WHERE pc.gadget_xml NOT LIKE '%term%' because I wanted to filter out any out of box gadgets, e.g. jira agile (greenhopper), or any com.atlassian.blabla things, because without the exclusion you will probably just get a ton of native gadgets but nothing 3rd party on first sight. So I think if you take some time to exclude those you're not interested in, you should then get a decent overview of which dashboards which gadgets are used on.


For displaying basic Jira information, such as issues and charts, we recommend using the Jira Issues Macro and Jira Chart Macro as these macros have better performance and are easier to configure than gadgets.


If you don't see any Jira Gadgets in the macro browser, ask your Confluence administrator to add the Jira Gadget urls to the list of authorized external gadgets in Confluence, and check that the application link between Confluence and your Jira application is configured correctly.


I have not experienced this.

But I suspect the network. (but this is a low suspect)



Because, when you want to add the gadgets, not all gets loaded, things start to load only after you click the load all gadgets.


We're on 8.5.5 as well and I appreciate you linking me to the above issue. I did try w/ a different browser (both Safari & FF), but seem to still have the issue even after clearing out the browser cache.


When you choose a gadget from the menu, Origin adds a rectangle to the graph, allowing you to choose the Region of Interest (ROI) for the data to be analyzed. A Preference dialog is available either by double clicking on the ROI box, or from the fly out menu of the ROI for most gadgets. You can also save your settings to a theme file for later use.


Multiple gadgets are supported on a graph. You can customize the color of each ROI to distinguish them. . Click on a particular ROI to bring it ot the front. When an ROI is selected, you can also use the Tab key to switch from one ROI to another.


Note: To toggle the display of all gadget ROI boxes in a graph at the same time, click the H button in the top right corner of the graph, which enables users to export the graph with gadget results.


Where Shiny apps are ultimately intended to be deployed on servers (like Shiny Server or ShinyApps.io) and accessed via a web browser, Shiny Gadgets are only ever intended to be invoked from code (in the R console or from an R script) or from within RStudio.

3a8082e126
Reply all
Reply to author
Forward
0 new messages