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 { AsyncThunk, AsyncThunkAction } from "@reduxjs/toolkit"; | |
type AsyncThunkReturnType<C extends AsyncThunkAction<any, any, any>> = C extends AsyncThunkAction<infer T, any, any> ? T : unknown; | |
export type GetAsyncThunkReturnType<T extends AsyncThunk<any, any, any>> = AsyncThunkReturnType<ReturnType<T>>; |
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
select g."name", g.friendlyurl, l.friendlyurl, l."name", pp.portletid, pp.plid from portletpreferencevalue ppv | |
inner join portletpreferences pp on pp.portletpreferencesid = ppv.portletpreferencesid | |
inner join layout l on l.plid = pp.plid | |
inner join group_ g on g.groupid = l.groupid | |
where ppv."name" = 'displayStyle' -- displayStyle é o name do input de modelo no asset publisher | |
and smallvalue = 'ddmTemplate_5408463' -- 5408463 é o templateKey |
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 com.liferay.mail.kernel.model.MailMessage; | |
import com.liferay.mail.kernel.service.MailServiceUtil; | |
import javax.mail.internet.InternetAddress; | |
MailMessage mailMessage = new MailMessage(); | |
mailMessage.setHTMLFormat(true); | |
mailMessage.setBody("set body here"); | |
mailMessage.setFrom(new InternetAddress("fromAddress","fromName")); |
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
version: "3.8" | |
services: | |
liferay: | |
image: liferay/portal:7.4.3.19-ga19 | |
container_name: tomcat | |
networks: | |
- fs72sp1 | |
depends_on: | |
- postgres | |
environment: |
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
"use strict"; | |
const e = React.createElement; | |
const { useState, useEffect } = React; | |
// TODO pegar campos editáveis de um campo editável que só aparece na página de edição | |
const BibliotecaDeArquivos = (props) => { | |
const [searchValue, setSearchValue] = useState(''); | |
function handleSearch(keywords) { |
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
<#function getLocalizedCustomFieldValue navItem customFieldName> | |
<#assign customField = navItem.getLayout().getExpandoBridge().getAttribute(customFieldName)> | |
<#if customField??> | |
<#list customField?keys as key> | |
<#if key == locale> | |
<#return customField?values[key_index]!"" /> | |
</#if> | |
</#list> | |
<#else> | |
<#return "" /> |
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
@Activate | |
public void activate() { | |
ResourceBundle resourceBundle = ResourceBundle.getBundle( | |
"content.Language", LocaleUtil.getDefault()); | |
String value = LanguageUtil.get(resourceBundle, "key"); | |
} |
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
{ | |
"alternativeHeadline": "Título alternativo da notícia vai aqui", | |
"articleBody": "Corpo da notícia vai aqui", | |
"datePublished": "2021-02-10T06:30:17.780Z", | |
"description": "Descrição da notícia vai aqui", | |
"headline": "Título da notícia vai aqui", | |
"viewableBy": "Anyone" | |
} |
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
<@clay["icon"] symbol="times" /> |
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
AUI().use("liferay-notification", () => { | |
new Liferay.Notification({ | |
closeable: true, | |
delay: { | |
hide: 5000, | |
show: 0, | |
}, | |
duration: 1500, | |
message: "Test message", | |
render: true, |
NewerOlder