Changing to sqlite and resetting,
This commit is contained in:
parent
2309e31256
commit
63bbb46715
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -48,6 +48,7 @@ core/.phpstan-baseline.php text eol=lf whitespace=blank-at-eol,-blank-at-eof,-sp
|
|||||||
# Define binary file attributes.
|
# Define binary file attributes.
|
||||||
# - Do not treat them as text.
|
# - Do not treat them as text.
|
||||||
# - Include binary diff in patches instead of "binary files differ."
|
# - Include binary diff in patches instead of "binary files differ."
|
||||||
|
*.avif -text diff
|
||||||
*.eot -text diff
|
*.eot -text diff
|
||||||
*.exe -text diff
|
*.exe -text diff
|
||||||
*.gif -text diff
|
*.gif -text diff
|
||||||
|
|||||||
2579
composer.lock
generated
2579
composer.lock
generated
File diff suppressed because it is too large
Load Diff
@ -41,7 +41,6 @@ module:
|
|||||||
media_library: 0
|
media_library: 0
|
||||||
menu_link_content: 0
|
menu_link_content: 0
|
||||||
menu_ui: 0
|
menu_ui: 0
|
||||||
mysql: 0
|
|
||||||
node: 0
|
node: 0
|
||||||
nodepath_access: 0
|
nodepath_access: 0
|
||||||
options: 0
|
options: 0
|
||||||
@ -53,6 +52,7 @@ module:
|
|||||||
settings_tray: 0
|
settings_tray: 0
|
||||||
shortcut: 0
|
shortcut: 0
|
||||||
smtp: 0
|
smtp: 0
|
||||||
|
sqlite: 0
|
||||||
system: 0
|
system: 0
|
||||||
taxonomy: 0
|
taxonomy: 0
|
||||||
text: 0
|
text: 0
|
||||||
|
|||||||
1
recipes/.gitignore
vendored
Normal file
1
recipes/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
/README.txt
|
||||||
@ -44,7 +44,7 @@
|
|||||||
// fallback to index.php.
|
// fallback to index.php.
|
||||||
do {
|
do {
|
||||||
$path = dirname($path);
|
$path = dirname($path);
|
||||||
if (preg_match('/\.php$/', $path) && is_file(__DIR__ . $path)) {
|
if (str_ends_with($path, '.php') && is_file(__DIR__ . $path)) {
|
||||||
// Discovered that the path contains an existing PHP file. Use that as the
|
// Discovered that the path contains an existing PHP file. Use that as the
|
||||||
// script to include.
|
// script to include.
|
||||||
$script = ltrim($path, '/');
|
$script = ltrim($path, '/');
|
||||||
|
|||||||
@ -22,6 +22,9 @@ DirectoryIndex index.php index.html index.htm
|
|||||||
AddType image/svg+xml svg svgz
|
AddType image/svg+xml svg svgz
|
||||||
AddEncoding gzip svgz
|
AddEncoding gzip svgz
|
||||||
|
|
||||||
|
# Add correct encoding for webp.
|
||||||
|
AddType image/webp .webp
|
||||||
|
|
||||||
# Most of the following PHP settings cannot be changed at runtime. See
|
# Most of the following PHP settings cannot be changed at runtime. See
|
||||||
# sites/default/default.settings.php and
|
# sites/default/default.settings.php and
|
||||||
# Drupal\Core\DrupalKernel::bootEnvironment() for settings that can be
|
# Drupal\Core\DrupalKernel::bootEnvironment() for settings that can be
|
||||||
|
|||||||
BIN
web/db/db.sqlite
Normal file
BIN
web/db/db.sqlite
Normal file
Binary file not shown.
@ -20,7 +20,6 @@ final class CopyrightBlock extends BlockBase {
|
|||||||
*/
|
*/
|
||||||
public function build(): array {
|
public function build(): array {
|
||||||
$year = date('Y');
|
$year = date('Y');
|
||||||
"<p>© Dan Chadwick {$year}</p>";
|
|
||||||
$build = [
|
$build = [
|
||||||
'#markup' => "<p>© Dan Chadwick {$year}</p>",
|
'#markup' => "<p>© Dan Chadwick {$year}</p>",
|
||||||
];
|
];
|
||||||
|
|||||||
@ -30,6 +30,7 @@ public static function getSubscribedEvents(): array {
|
|||||||
* React to a config object being saved.
|
* React to a config object being saved.
|
||||||
*/
|
*/
|
||||||
public function onRequest(RequestEvent $event): void {
|
public function onRequest(RequestEvent $event): void {
|
||||||
|
return;
|
||||||
$user = \Drupal::currentUser();
|
$user = \Drupal::currentUser();
|
||||||
$user_roles = $user->getRoles();
|
$user_roles = $user->getRoles();
|
||||||
if (!in_array('anonymous', $user_roles)) {
|
if (!in_array('anonymous', $user_roles)) {
|
||||||
|
|||||||
@ -38,6 +38,10 @@ parameters:
|
|||||||
# To maximize compatibility and normalize the behavior across user agents,
|
# To maximize compatibility and normalize the behavior across user agents,
|
||||||
# the cookie domain should start with a dot.
|
# the cookie domain should start with a dot.
|
||||||
#
|
#
|
||||||
|
# Sessions themselves will only be synchronized across subdomains if they
|
||||||
|
# are all served from the same Drupal installation or if some other session
|
||||||
|
# sharing mechanism is implemented.
|
||||||
|
#
|
||||||
# @default none
|
# @default none
|
||||||
# cookie_domain: '.example.com'
|
# cookie_domain: '.example.com'
|
||||||
#
|
#
|
||||||
@ -47,23 +51,6 @@ parameters:
|
|||||||
# information.
|
# information.
|
||||||
# @default no value
|
# @default no value
|
||||||
cookie_samesite: Lax
|
cookie_samesite: Lax
|
||||||
#
|
|
||||||
# Set the session ID string length. The length can be between 22 to 256. The
|
|
||||||
# PHP recommended value is 48. See
|
|
||||||
# https://www.php.net/manual/session.security.ini.php for more information.
|
|
||||||
# This value should be kept in sync with
|
|
||||||
# \Drupal\Core\Session\SessionConfiguration::__construct()
|
|
||||||
# @default 48
|
|
||||||
sid_length: 48
|
|
||||||
#
|
|
||||||
# Set the number of bits in encoded session ID character. The possible
|
|
||||||
# values are '4' (0-9, a-f), '5' (0-9, a-v), and '6' (0-9, a-z, A-Z, "-",
|
|
||||||
# ","). The PHP recommended value is 6. See
|
|
||||||
# https://www.php.net/manual/session.security.ini.php for more information.
|
|
||||||
# This value should be kept in sync with
|
|
||||||
# \Drupal\Core\Session\SessionConfiguration::__construct()
|
|
||||||
# @default 6
|
|
||||||
sid_bits_per_character: 6
|
|
||||||
# By default, Drupal generates a session cookie name based on the full
|
# By default, Drupal generates a session cookie name based on the full
|
||||||
# domain name. Set the name_suffix to a short random string to ensure this
|
# domain name. Set the name_suffix to a short random string to ensure this
|
||||||
# session cookie name is unique on different installations on the same
|
# session cookie name is unique on different installations on the same
|
||||||
@ -216,22 +203,46 @@ parameters:
|
|||||||
# Note: By default the configuration is disabled.
|
# Note: By default the configuration is disabled.
|
||||||
cors.config:
|
cors.config:
|
||||||
enabled: false
|
enabled: false
|
||||||
# Specify allowed headers, like 'x-allowed-header'.
|
# Specifies allowed headers and sets the Access-Control-Allow-Headers
|
||||||
|
# header. For example, ['X-Custom-Header']. See
|
||||||
|
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Headers
|
||||||
allowedHeaders: []
|
allowedHeaders: []
|
||||||
# Specify allowed request methods, specify ['*'] to allow all possible ones.
|
# Specifies allowed request methods and sets the
|
||||||
|
# Access-Control-Allow-Methods header. For example, ['POST', 'GET',
|
||||||
|
# 'OPTIONS'] or ['*'] to allow all. Note the wildcard is not yet implemented
|
||||||
|
# in all browsers. See
|
||||||
|
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Methods
|
||||||
allowedMethods: []
|
allowedMethods: []
|
||||||
# Configure requests allowed from specific origins. Do not include trailing
|
# Configure requests allowed from specific origins and sets the
|
||||||
# slashes with URLs.
|
# Access-Control-Allow-Origin header. For example,
|
||||||
|
# ['https://www.drupal.org'] or ['*'] to allow any origin to access your
|
||||||
|
# resource. See
|
||||||
|
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin
|
||||||
allowedOrigins: ['*']
|
allowedOrigins: ['*']
|
||||||
# Configure requests allowed from origins, matching against regex patterns.
|
# Configure requests allowed from origins, matching against regex patterns.
|
||||||
allowedOriginsPatterns: []
|
allowedOriginsPatterns: []
|
||||||
# Sets the Access-Control-Expose-Headers header.
|
# Sets the Access-Control-Expose-Headers header. The default is false which
|
||||||
|
# means the header will not be set. To set the header use a comma delimited
|
||||||
|
# list within square brackets. For example, ['Content-Type', 'Expires'] or
|
||||||
|
# ['*'] to expose all headers. Setting exposedHeaders: ['*'] will result in
|
||||||
|
# a Access-Control-Expose-Headers: * response header. See
|
||||||
|
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Expose-Headers
|
||||||
exposedHeaders: false
|
exposedHeaders: false
|
||||||
# Sets the Access-Control-Max-Age header.
|
# Setting Access-Control-Max-Age header value to '0' or false will omit this
|
||||||
|
# from the response. However, setting it to '-1' will explicitly disable
|
||||||
|
# caching. For example, setting the value to 600 will cache results of a
|
||||||
|
# preflight request for 10 minutes. See
|
||||||
|
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Max-Age
|
||||||
maxAge: false
|
maxAge: false
|
||||||
# Sets the Access-Control-Allow-Credentials header.
|
# Sets the Access-Control-Allow-Credentials header if set to true. See
|
||||||
|
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials
|
||||||
supportsCredentials: false
|
supportsCredentials: false
|
||||||
|
|
||||||
|
# The maximum number of entities stored in memory. Lowering this number can
|
||||||
|
# reduce the amount of memory used in long-running processes like migrations,
|
||||||
|
# however will also increase requests to the database or entity cache backend.
|
||||||
|
entity.memory_cache.slots: 1000
|
||||||
|
|
||||||
queue.config:
|
queue.config:
|
||||||
# The maximum number of seconds to wait if a queue is temporarily suspended.
|
# The maximum number of seconds to wait if a queue is temporarily suspended.
|
||||||
# This is not applicable when a queue is suspended but does not specify
|
# This is not applicable when a queue is suspended but does not specify
|
||||||
|
|||||||
@ -67,10 +67,10 @@
|
|||||||
* during the same request.
|
* during the same request.
|
||||||
*
|
*
|
||||||
* One example of the simplest connection array is shown below. To use the
|
* One example of the simplest connection array is shown below. To use the
|
||||||
* sample settings, copy and uncomment the code below between the @code and
|
* sample settings, copy and uncomment the code below and paste it after the
|
||||||
* @endcode lines and paste it after the $databases declaration. You will need
|
* $databases declaration. You will need to replace the database username and
|
||||||
* to replace the database username and password and possibly the host and port
|
* password and possibly the host and port with the appropriate credentials for
|
||||||
* with the appropriate credentials for your database system.
|
* your database system.
|
||||||
*
|
*
|
||||||
* The next section describes how to customize the $databases array for more
|
* The next section describes how to customize the $databases array for more
|
||||||
* specific needs.
|
* specific needs.
|
||||||
@ -312,7 +312,7 @@
|
|||||||
$settings['update_free_access'] = FALSE;
|
$settings['update_free_access'] = FALSE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fallback to HTTP for Update Manager and for fetching security advisories.
|
* Fallback to HTTP for Update Status and for fetching security advisories.
|
||||||
*
|
*
|
||||||
* If your site fails to connect to updates.drupal.org over HTTPS (either when
|
* If your site fails to connect to updates.drupal.org over HTTPS (either when
|
||||||
* fetching data on available updates, or when fetching the feed of critical
|
* fetching data on available updates, or when fetching the feed of critical
|
||||||
@ -475,30 +475,6 @@
|
|||||||
*/
|
*/
|
||||||
# $settings['class_loader_auto_detect'] = FALSE;
|
# $settings['class_loader_auto_detect'] = FALSE;
|
||||||
|
|
||||||
/**
|
|
||||||
* Authorized file system operations:
|
|
||||||
*
|
|
||||||
* The Update Manager module included with Drupal provides a mechanism for
|
|
||||||
* site administrators to securely install missing updates for the site
|
|
||||||
* directly through the web user interface. On securely-configured servers,
|
|
||||||
* the Update manager will require the administrator to provide SSH or FTP
|
|
||||||
* credentials before allowing the installation to proceed; this allows the
|
|
||||||
* site to update the new files as the user who owns all the Drupal files,
|
|
||||||
* instead of as the user the webserver is running as. On servers where the
|
|
||||||
* webserver user is itself the owner of the Drupal files, the administrator
|
|
||||||
* will not be prompted for SSH or FTP credentials (note that these server
|
|
||||||
* setups are common on shared hosting, but are inherently insecure).
|
|
||||||
*
|
|
||||||
* Some sites might wish to disable the above functionality, and only update
|
|
||||||
* the code directly via SSH or FTP themselves. This setting completely
|
|
||||||
* disables all functionality related to these authorized file operations.
|
|
||||||
*
|
|
||||||
* @see https://www.drupal.org/node/244924
|
|
||||||
*
|
|
||||||
* Remove the leading hash signs to disable.
|
|
||||||
*/
|
|
||||||
# $settings['allow_authorize_operations'] = FALSE;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default mode for directories and files written by Drupal.
|
* Default mode for directories and files written by Drupal.
|
||||||
*
|
*
|
||||||
|
|||||||
@ -882,18 +882,23 @@
|
|||||||
# include $app_root . '/' . $site_path . '/settings.local.php';
|
# include $app_root . '/' . $site_path . '/settings.local.php';
|
||||||
# }
|
# }
|
||||||
|
|
||||||
$databases['default']['default'] = array (
|
/* $databases['default']['default'] = array ( */
|
||||||
'database' => 'dchadwick',
|
/* 'database' => 'dchadwick', */
|
||||||
'username' => 'dchadwick',
|
/* 'username' => 'dchadwick', */
|
||||||
'password' => 'k0aptd8I',
|
/* 'password' => 'k0aptd8I', */
|
||||||
'prefix' => '',
|
/* 'prefix' => '', */
|
||||||
'host' => 'localhost',
|
/* 'host' => 'localhost', */
|
||||||
'port' => '3306',
|
/* 'port' => '3306', */
|
||||||
'isolation_level' => 'READ COMMITTED',
|
/* 'isolation_level' => 'READ COMMITTED', */
|
||||||
'driver' => 'mysql',
|
/* 'driver' => 'mysql', */
|
||||||
'namespace' => 'Drupal\\mysql\\Driver\\Database\\mysql',
|
/* 'namespace' => 'Drupal\\mysql\\Driver\\Database\\mysql', */
|
||||||
'autoload' => 'core/modules/mysql/src/Driver/Database/mysql/',
|
/* 'autoload' => 'core/modules/mysql/src/Driver/Database/mysql/', */
|
||||||
);
|
/* ); */
|
||||||
|
|
||||||
|
$databases['default']['default'] = [
|
||||||
|
'driver' => 'sqlite',
|
||||||
|
'database' => 'db/db.sqlite',
|
||||||
|
];
|
||||||
|
|
||||||
if (file_exists($app_root . '/' . $site_path . '/settings.local.php')) {
|
if (file_exists($app_root . '/' . $site_path . '/settings.local.php')) {
|
||||||
include $app_root . '/' . $site_path . '/settings.local.php';
|
include $app_root . '/' . $site_path . '/settings.local.php';
|
||||||
@ -914,7 +919,6 @@
|
|||||||
|
|
||||||
$settings['rebuild_access'] = FALSE;
|
$settings['rebuild_access'] = FALSE;
|
||||||
|
|
||||||
// Automatically generated include for settings managed by ddev.
|
|
||||||
$ddev_settings = dirname(__FILE__) . '/settings.ddev.php';
|
$ddev_settings = dirname(__FILE__) . '/settings.ddev.php';
|
||||||
if (getenv('IS_DDEV_PROJECT') == 'true' && is_readable($ddev_settings)) {
|
if (getenv('IS_DDEV_PROJECT') == 'true' && is_readable($ddev_settings)) {
|
||||||
require $ddev_settings;
|
require $ddev_settings;
|
||||||
|
|||||||
@ -17,3 +17,14 @@ parameters:
|
|||||||
services:
|
services:
|
||||||
cache.backend.null:
|
cache.backend.null:
|
||||||
class: Drupal\Core\Cache\NullBackendFactory
|
class: Drupal\Core\Cache\NullBackendFactory
|
||||||
|
logger.channel.config_schema:
|
||||||
|
parent: logger.channel_base
|
||||||
|
arguments: [ 'config_schema' ]
|
||||||
|
config.schema_checker:
|
||||||
|
class: Drupal\Core\Config\Development\LenientConfigSchemaChecker
|
||||||
|
arguments:
|
||||||
|
- '@config.typed'
|
||||||
|
- '@messenger'
|
||||||
|
- '@logger.channel.config_schema'
|
||||||
|
tags:
|
||||||
|
- { name: event_subscriber }
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
((Drupal) => {
|
((Drupal) => {
|
||||||
Drupal.behaviors.button = {
|
Drupal.behaviors.button = {
|
||||||
attach(context) {
|
attach(context) {
|
||||||
console.log("hello");
|
// console.log("hello");
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
})(Drupal);
|
})(Drupal);
|
||||||
|
|||||||
@ -24,9 +24,9 @@ predict_event:
|
|||||||
js/predictEvent.js: { attributes: { await: true }}
|
js/predictEvent.js: { attributes: { await: true }}
|
||||||
|
|
||||||
brainjs:
|
brainjs:
|
||||||
version: 2.0.0
|
version: 24
|
||||||
js:
|
js:
|
||||||
https://unpkg.com/brain.js@2.0.0-beta.23/dist/browser.js: { type: external, attributes: { async: true }}
|
https://unpkg.com/brain.js@2.0.0-beta.24/dist/browser.js: { type: external, attributes: { async: true }}
|
||||||
|
|
||||||
articles:
|
articles:
|
||||||
js:
|
js:
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
document.addEventListener('readystatechange', event => {
|
document.addEventListener('readystatechange', event => {
|
||||||
// When HTML/DOM elements are ready:
|
if (event.target.readyState === "interactive") {
|
||||||
if (event.target.readyState === "interactive") { //does same as: ..addEventListener("DOMContentLoaded"..
|
|
||||||
highlightFightHistory();
|
highlightFightHistory();
|
||||||
let train = false;
|
let train = false;
|
||||||
if (train) {
|
if (train) {
|
||||||
@ -32,7 +31,7 @@ function highlightFightHistory() {
|
|||||||
|
|
||||||
function trainTheBrain() {
|
function trainTheBrain() {
|
||||||
const config = {
|
const config = {
|
||||||
iterations: 5000,
|
iterations: 500,
|
||||||
log: true,
|
log: true,
|
||||||
logPeriod: 100,
|
logPeriod: 100,
|
||||||
binaryThresh: 0.5,
|
binaryThresh: 0.5,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user