This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global favThemes | |
set favThemes to {"Basic", "Pro Blue", "Pro Mint", "Pro Plum", "Pro Red", "Pro Gold", "Pro"} | |
tell application "Terminal" | |
# Get current settings | |
set theme to the name of the current settings of the selected tab of the front window | |
set i to my index_of(theme) | |
# Find next settings | |
set next to (i mod (count of favThemes) + 1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This file Copyright (c) 2016 Magnolia International | |
* Ltd. (http://www.magnolia-cms.com). All rights reserved. | |
* | |
* | |
* This file is dual-licensed under both the Magnolia | |
* Network Agreement and the GNU General Public License. | |
* You may elect to use one or the other of these licenses. | |
* | |
* This file is distributed in the hope that it will be |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(p){s=location.search;if(!s.includes("?"+p)&&!s.includes("&"+p))location.search+=s.startsWith("?")?"&"+p:"?"+p})("restartApplication") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<properties> | |
... | |
<magnolia.version>5.6.6</magnolia.version> | |
<commons.lang3.version>3.7</commons.lang3.version> | |
<jackrabbit.version>2.16.1</jackrabbit.version> | |
<tika.version>1.17</tika.version> | |
</properties> | |
<dependencyManagement> | |
<dependencies> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package info.magnolia.dev.mgnlui_3527_multifield_validation; | |
import info.magnolia.ui.form.validator.definition.ConfiguredFieldValidatorDefinition; | |
import info.magnolia.ui.form.validator.definition.FieldValidatorDefinition; | |
import info.magnolia.ui.form.validator.factory.AbstractFieldValidatorFactory; | |
import info.magnolia.ui.form.validator.factory.FieldValidatorFactory; | |
import java.text.MessageFormat; | |
import javax.inject.Inject; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package info.magnolia.dev.rest; | |
import static javax.ws.rs.core.MediaType.APPLICATION_JSON; | |
import info.magnolia.context.Context; | |
import info.magnolia.rest.AbstractEndpoint; | |
import info.magnolia.rest.delivery.jcr.QueryBuilder; | |
import info.magnolia.rest.registry.ConfiguredEndpointDefinition; | |
import java.util.List; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package info.magnolia.dev; | |
import static com.vaadin.ui.Notification.Type.HUMANIZED_MESSAGE; | |
import info.magnolia.icons.MagnoliaIcons; | |
import info.magnolia.ui.AlertBuilder; | |
import info.magnolia.ui.api.app.AppContext; | |
import info.magnolia.ui.api.app.AppView; | |
import info.magnolia.ui.api.location.Location; | |
import info.magnolia.ui.framework.app.BaseApp; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Field private registry | |
import groovy.transform.Field | |
import info.magnolia.objectfactory.Components | |
import info.magnolia.virtualuri.VirtualUriRegistry | |
import static java.util.stream.Collectors.joining | |
registry = Components.getComponent(VirtualUriRegistry.class) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import info.magnolia.cms.filters.CompositeFilter | |
import info.magnolia.cms.filters.FilterManager | |
import info.magnolia.cms.filters.MgnlFilter | |
import info.magnolia.cms.filters.ServletDispatchingFilter | |
import info.magnolia.objectfactory.Components | |
import info.magnolia.rest.RestDispatcherServlet | |
import java.util.stream.Stream | |
ServletDispatchingFilter restFilter = findFilter("RestDispatcherServlet-wrapper") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env groovy | |
/** | |
* Run me from your magnolia home. | |
*/ | |
def repositories = new File('./repositories').canonicalFile | |
def workspaces = repositories.toPath().resolve('magnolia/workspaces').toFile() | |
def dbsToBackup = workspaces.list().collectEntries({ | |
[(it): "jdbc:h2:${workspaces.toPath().resolve(it).toFile().absolutePath}/db"] | |
}) |
OlderNewer