This file contains 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
# Settings > Actions > General > Read and write permissions | |
# Settings > Actions > General > Allow GitHub Actions to create and approve pull requests | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
pull-requests: write |
This file contains 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
[@liferay_portlet["runtime"] | |
portletName="${configuration.portletID}" | |
instanceId="${configuration.portletID}_instance_${fragmentElementId}" | |
/] |
This file contains 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
location /proxy { | |
proxy_pass http://customservice:80; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
rewrite ^/proxy/(.*)$ /$1 break; | |
} |
This file contains 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
// To add in the build.gradle at the root of a Liferay workspace | |
def gitignoreToList(File f) { | |
def ignores = [] | |
f.eachLine { line -> | |
if (!line.startsWith('#') && !line.isEmpty()) { | |
ignores.add(line) | |
} | |
} | |
return ignores |
This file contains 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
# A quick Docker Compose to build a Liferay stack using Liferay Cloud backup files | |
# Put the document_library folder and the mysql_dump.sql (or whatever the name) in the same folder as this file. | |
# Run docker-compose up mysql | |
# Wait for successful dump import | |
# Run docker-compose up liferay | |
version: '3' | |
services: | |
liferay: | |
# you can verify the version in the SQL dump (e.g. 'Liferay Digital Experience Platform 7.4.13 Update 80') | |
image: liferay/dxp:7.4.13-u102 |
This file contains 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
<div class="user-account-fragment"> | |
[@liferay.user_personal_bar/] | |
</div> |
This file contains 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
.search-bar-suggestions-dropdown-menu.dropdown-menu { | |
border-radius: 0; | |
border-width: 1px; | |
box-shadow: 0; | |
} | |
.search-bar-suggestions-dropdown-menu | |
.search-bar-suggestions-results-list | |
.dropdown-subheader { | |
color: var(--color-brand-primary); |
This file contains 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
name: Release | |
on: | |
push: | |
tags: | |
- 'v*' | |
- '!*-alpha*' | |
- '!*-beta*' | |
- '!*-rc*' |
This file contains 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
#!/bin/sh | |
set -e | |
# List of GitHub repositories | |
REPOS=$(cat << EOF | |
https://github.com/jverweijL/Markdown | |
https://github.com/lgdd/liferay-ocr-documents | |
EOF | |
) |
This file contains 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
const LiferayService = { | |
get: async (url) => { | |
if (typeof window['Liferay'] != 'undefined') { | |
try { | |
const response = await window['Liferay'].Util.fetch(url); | |
const data = response.json(); | |
if (data.status) { | |
window['Liferay'].Util.openToast({ | |
title: data.status, | |
message: 'An error occured.', |
NewerOlder