コード例 #1
0
 public SharedItemOptionsResourceGroup()
     : base("SharedItemOptionsExtensionGroup")
 {
     AddFile("SharedItemOptionsExtension.js");
     // AddFile<LocalizeCommenterCommandSet>();
     Dependencies.AddLibraryJQuery();
 }
 public LocalizeCommenterTabPageResourceGroup()
     : base("LocalizeCommenterTabPageResources")
 {
     AddFile("LocalizeCommenterTabPage.js");
     AddFile("LocalizeCommenter.css");
     AddWebApiProxy();
     Dependencies.AddLibraryJQuery();
 }
コード例 #3
0
        public TridionVisionDashboardResourceGroup()
        {
            AddFile("TridionVisionDashboard.js");

            Dependencies.AddLibraryJQuery();

            AddWebApiProxy();
        }
コード例 #4
0
 public ViewWorkflowGroup()
 {
     AddFile("ViewWorkflow.js");
     AddFile("ViewWorkflow.css");
     AttachToView("ViewWorkflow.aspx");
     AddWebApiProxy();
     Dependencies.AddLibraryJQuery();
     Dependencies.Add("Tridion.Web.UI.Editors.CME");
 }
コード例 #5
0
 public PublishedEnvironmentGroup()
 {
     AddFile("PublishedEnvironment.js");
     AddFile("PublishedEnvironment.css");
     AttachToView("PublishedEnvironment.aspx");
     AddWebApiProxy();
     Dependencies.AddLibraryJQuery();
     Dependencies.Add("Tridion.Web.UI.Editors.CME");
 }
コード例 #6
0
        /// <summary>
        /// Constructor
        /// </summary>
        public ItemsPanelSearchResourceGroup()
        {
            // When adding files you only need to specify the filename and not full path
            AddFile("sieve.js");
            AddFile("ItemsPanelSearch.js");
            AddFile("ItemsPanelSearchStyle.css");

            AddWebApiProxy();
            // Adding the JQuery dependancy
            Dependencies.AddLibraryJQuery();
            //Dependencies.AddAlchemyCore();
        }
コード例 #7
0
        public TridionVisionOptionsPopupResourceGroup()
        {
            AddFile("SearchImagesPopup.js");
            AddFile("SearchImagesPopup.css");

            Dependencies.AddLibraryJQuery();
            Dependencies.Add("Tridion.Web.UI.Editors.CME");
            Dependencies.Add("Tridion.Web.UI.Editors.CME.commands");

            AddWebApiProxy();

            AttachToView("SearchImagesPopup.aspx");
        }
コード例 #8
0
        public GoToLocationResouceGroup()
        {
            AddFile("GotoLocationCommands.js");
            AddFile("GoToLocation.css");
            AddFile <GoToLocationCommandSet>();
            Dependencies.AddAlchemyCore();

            // Adding Web API Proxy
            //AddWebApiProxy();

            // Adding the JQuery dependancy
            Dependencies.AddLibraryJQuery();
        }
        /// <summary>
        /// Constructor
        /// </summary>
        public UsageReportPopupResourceGroup()
        {
            // When adding files you only need to specify the filename and not full path
            AddFile("UsageReportPopup.js");
            AddFile("UsageReportPopup.css");

            // The above is just a convenient way of doing the following... AddFile(FileTypes.Reference, "Alchemy.Plugins.HelloWorld.Commands.HelloCommandSet");

            // Since Alchemy comes with several libraries I can reference JQuery this way and avoid having to add it myself
            Dependencies.AddLibraryJQuery();

            // If you want this resource group to contain the js proxies to call your webservice, call AddWebApiProxy()
            AddWebApiProxy();
        }
コード例 #10
0
        public LocalizeCommenterPopUpResourceGroup() : base("LocalizeCommenterPopUpResources")
        {
            AddFile("LocalizeCommenterPopUp.js");
            AddFile("LocalizeCommenter.css");

            // Since Alchemy comes with several libraries I can reference JQuery this way and avoid having
            // to add it myself
            Dependencies.AddLibraryJQuery();
            Dependencies.Add("Tridion.Web.UI.Editors.CME");
            Dependencies.Add("Tridion.Web.UI.Editors.CME.commands");

            AddWebApiProxy();

            AttachToView("LocalizeCommenterPopUp.aspx");
        }
コード例 #11
0
        public TranslatorResourceGroup()
        {
            // only the filename of our JS files are needed
            AddFile("TranslatorCommand.js");
            // only the filename of our CSS files are needed
            //AddFile("Styles.css");
            // add genertic type param to reference our command set
            AddFile <TranslatorCommandSet>();

            // Adds the web api proxy JS to this resource group... this allows us to call
            // our webapi service without any 3rd party libs.
            AddWebApiProxy();
            Dependencies.AddLibraryJQuery();

            // AddWebApiProxy() includes Alchemy.Core as a dependency already... if not using
            // the proxy you can remove the comment from below.

            // Dependencies.AddAlchemyCore();
        }
コード例 #12
0
        /// <summary>
        /// Constructor
        /// </summary>
        public LatestItemsPopupResourceGroup()
        {
            // When adding files you only need to specify the filename and not full path
            AddFile("LatestItemsPopup.js");
            AddFile("LatestItemsPopup.css");

            // The above is just a convenient way of doing the following...
            // AddFile(FileTypes.Reference, "Alchemy.Plugins.HelloWorld.Commands.HelloCommandSet");

            // Since Alchemy comes with several libraries I can reference JQuery this way and avoid having
            // to add it myself
            Dependencies.AddLibraryJQuery();

            // If you want this resource group to contain the js proxies to call your webservice, call AddWebApiProxy()
            AddWebApiProxy();

            Dependencies.Add("Tridion.Web.UI.Editors.CME");
            Dependencies.Add("Tridion.Web.UI.Editors.CME.commands");

            // Let's add our resources to the WhereUsedPlusGroup.aspx page.  This will inject
            // the resources without us having to manually edit it.
            AttachToView("LatestItems.aspx");
        }