Can't sign in, eh?
When...
- Keystone sessions are being used (eg. for authentication)
secureCookies
Keystone config istrue
(the default whenNODE_ENV
is'production'
)
// "@keystone-next/types": "^22.0.0", | |
// "@keystone-next/keystone": "^22.0.0" | |
// The actual lib | |
// utils/keystone/cascadeDelete.ts | |
import { ListHooks } from "@keystone-next/types" | |
import { BaseGeneratedListTypes } from "@keystone-next/types/src/utils" | |
type BeforeDeleteType = Exclude< | |
ListHooks<BaseGeneratedListTypes>["beforeDelete"], |
const renderHtml = (blocks) => { | |
var html = blocks.map(block => { | |
switch (block.type) { | |
case 'code': | |
return `<pre><code>${ block.data.code }</pre></code>` | |
/** | |
* Original type is 'header' but I renamed the block to follow correct terminology: | |
* https://github.com/editor-js/header/issues/21 | |
*/ |
#!/bin/bash | |
################################################################### | |
# Script for check new version of Element from github | |
# and download new version, if update is avaiable | |
# | |
# https://gist.github.com/MurzNN/ee64f98ab2e71b886c41d55594e5dd9e | |
# | |
################################################################### |
Hello, i am try to install protobuf + grpc + php, here is how i do
sudo apt install php-dev protobuf-compiler protobuf-compiler-grpc
sudo pecl channel-update pecl.php.net
sudo pecl install grpc protobuf
sudo -i
cd /etc/php/7.1/mods-available
echo "extension=protobuf.so" > protobuf.ini
<?php | |
/** | |
* See original implementation http://cgit.drupalcode.org/mailsystem/tree/src/MailsystemManager.php#n60 | |
*/ | |
// Switch the theme to the configured mail theme. | |
$theme_manager = \Drupal::service('theme.manager'); | |
$mail_theme = '[your theme name]'; | |
$current_active_theme = $theme_manager->getActiveTheme(); | |
if ($mail_theme && $mail_theme != $current_active_theme->getName()) { | |
$theme_initialization = \Drupal::service('theme.initialization'); |
Caution: This requires some amount of technical knowledge about how matrix/riot works.
For reference, the original grey color scheme in Riot had a primary color of #595959 and a secondary color of #ececec
/devtools
This copy of the script is no longer updated, but I'll leave it here for reference.