Update Composer, update everything
This commit is contained in:
parent
ea3e94409f
commit
dda5c284b6
19527 changed files with 1135420 additions and 351004 deletions
BIN
web/core/modules/media/tests/fixtures/example_1.jpeg
vendored
Normal file
BIN
web/core/modules/media/tests/fixtures/example_1.jpeg
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.7 KiB |
BIN
web/core/modules/media/tests/fixtures/example_2.jpeg
vendored
Normal file
BIN
web/core/modules/media/tests/fixtures/example_2.jpeg
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.7 KiB |
8
web/core/modules/media/tests/fixtures/oembed/photo_flickr.html
vendored
Normal file
8
web/core/modules/media/tests/fixtures/oembed/photo_flickr.html
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<link rel="alternate" href="photo_flickr.json"
|
||||
type="application/json+oembed" title="Druplicon FTW!">
|
||||
</head>
|
||||
<body></body>
|
||||
</html>
|
12
web/core/modules/media/tests/fixtures/oembed/photo_flickr.json
vendored
Normal file
12
web/core/modules/media/tests/fixtures/oembed/photo_flickr.json
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"type": "photo",
|
||||
"title": "Druplicon FTW!",
|
||||
"width": "88",
|
||||
"height": "100",
|
||||
"url": "internal:\/core\/misc\/druplicon.png",
|
||||
"thumbnail_url": "internal:\/core\/misc\/druplicon.png",
|
||||
"thumbnail_width": 88,
|
||||
"thumbnail_height": 100,
|
||||
"provider_name": "Flickr",
|
||||
"version": "1.0"
|
||||
}
|
61
web/core/modules/media/tests/fixtures/oembed/providers.json
vendored
Normal file
61
web/core/modules/media/tests/fixtures/oembed/providers.json
vendored
Normal file
|
@ -0,0 +1,61 @@
|
|||
[
|
||||
{
|
||||
"provider_name": "Vimeo",
|
||||
"provider_url": "https:\/\/vimeo.com\/",
|
||||
"endpoints": [
|
||||
{
|
||||
"schemes": [
|
||||
"https:\/\/vimeo.com\/*",
|
||||
"https:\/\/vimeo.com\/album\/*\/video\/*",
|
||||
"https:\/\/vimeo.com\/channels\/*\/*",
|
||||
"https:\/\/vimeo.com\/groups\/*\/videos\/*",
|
||||
"https:\/\/vimeo.com\/ondemand\/*\/*",
|
||||
"https:\/\/player.vimeo.com\/video\/*"
|
||||
],
|
||||
"url": "https:\/\/vimeo.com\/api\/oembed.{format}",
|
||||
"discovery": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"provider_name": "Twitter",
|
||||
"provider_url": "http:\/\/www.twitter.com\/",
|
||||
"endpoints": [
|
||||
{
|
||||
"schemes": [
|
||||
"https:\/\/twitter.com\/*\/status\/*",
|
||||
"https:\/\/*.twitter.com\/*\/status\/*"
|
||||
],
|
||||
"url": "https:\/\/publish.twitter.com\/oembed"
|
||||
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"provider_name": "CollegeHumor",
|
||||
"provider_url": "http:\/\/www.collegehumor.com\/",
|
||||
"endpoints": [
|
||||
{
|
||||
"schemes": [
|
||||
"http:\/\/www.collegehumor.com\/video\/*"
|
||||
],
|
||||
"url": "http:\/\/www.collegehumor.com\/oembed.{format}",
|
||||
"discovery": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"provider_name": "Flickr",
|
||||
"provider_url": "http:\/\/www.flickr.com\/",
|
||||
"endpoints": [
|
||||
{
|
||||
"schemes": [
|
||||
"http:\/\/*.flickr.com\/photos\/*",
|
||||
"http:\/\/flic.kr\/p\/*"
|
||||
],
|
||||
"url": "http:\/\/www.flickr.com\/services\/oembed\/",
|
||||
"discovery": true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
13
web/core/modules/media/tests/fixtures/oembed/rich_twitter.json
vendored
Normal file
13
web/core/modules/media/tests/fixtures/oembed/rich_twitter.json
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"url": "https:\/\/twitter.com\/drupaldevdays\/status\/935643039741202432",
|
||||
"author_name": "Drupal Dev Days",
|
||||
"author_url": "https:\/\/twitter.com\/drupaldevdays",
|
||||
"html": "<h1>By the power of Greyskull, Twitter works!</h1>",
|
||||
"width": 550,
|
||||
"height": 360,
|
||||
"type": "rich",
|
||||
"cache_age": "3153600000",
|
||||
"provider_name": "Twitter",
|
||||
"provider_url": "https:\/\/twitter.com",
|
||||
"version": "1.0"
|
||||
}
|
8
web/core/modules/media/tests/fixtures/oembed/video_collegehumor.html
vendored
Normal file
8
web/core/modules/media/tests/fixtures/oembed/video_collegehumor.html
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<link rel="alternate" href="video_collegehumor.xml"
|
||||
type="application/xml+oembed" title="Let's Not Get a Drink Sometime">
|
||||
</head>
|
||||
<body></body>
|
||||
</html>
|
18
web/core/modules/media/tests/fixtures/oembed/video_collegehumor.xml
vendored
Normal file
18
web/core/modules/media/tests/fixtures/oembed/video_collegehumor.xml
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<oembed>
|
||||
<type>video</type>
|
||||
<version>1.0</version>
|
||||
<title>Let's Not Get a Drink Sometime</title>
|
||||
<https/>
|
||||
<author_name>CollegeHumor</author_name>
|
||||
<author_url>http://www.collegehumor.com</author_url>
|
||||
<provider_name>CollegeHumor</provider_name>
|
||||
<provider_url>http://www.collegehumor.com</provider_url>
|
||||
<width>610</width>
|
||||
<height>343</height>
|
||||
<html><h1>By the power of Greyskull, CollegeHumor works!</h1>
|
||||
</html>
|
||||
<thumbnail_url>internal:/core/misc/druplicon.png</thumbnail_url>
|
||||
<thumbnail_width>88</thumbnail_width>
|
||||
<thumbnail_height>100</thumbnail_height>
|
||||
</oembed>
|
8
web/core/modules/media/tests/fixtures/oembed/video_vimeo.html
vendored
Normal file
8
web/core/modules/media/tests/fixtures/oembed/video_vimeo.html
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<link rel="alternate" href="video_vimeo.json"
|
||||
type="application/json+oembed" title="Drupal Rap Video - Schipulcon09">
|
||||
</head>
|
||||
<body></body>
|
||||
</html>
|
16
web/core/modules/media/tests/fixtures/oembed/video_vimeo.json
vendored
Normal file
16
web/core/modules/media/tests/fixtures/oembed/video_vimeo.json
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"type": "video",
|
||||
"version": "1.0",
|
||||
"provider_name": "Vimeo",
|
||||
"provider_url": "https:\/\/vimeo.com\/",
|
||||
"title": "Drupal Rap Video - Schipulcon09",
|
||||
"author_name": "Tendenci - The Open Source AMS",
|
||||
"author_url": "https:\/\/vimeo.com\/schipul",
|
||||
"html": "<h1>By the power of Greyskull, Vimeo works!</h1>",
|
||||
"width": 480,
|
||||
"height": 360,
|
||||
"description": "Special thanks to Tendenci, formerly Schipul for sponsoring this video with training, equipment and time. The open source way. All creative however was self directed by the individuals - A. Hughes (www.schipul.com\/ahughes) featuring QCait (www.schipul.com\/qcait) - Hands On Drupal\n\nDrupal is a free software package that allows an individual or a community of users to easily publish, manage and organize a wide variety of content on a website.\n\nNeed a little Drupal help or just want to geek out with us? Visit our www.schipul.com\/drupal for more info - we'd love to connect!\n\nGo here for Drupal Common Terms and Suggested Modules : http:\/\/schipul.com\/en\/helpfiles\/v\/229",
|
||||
"thumbnail_url": "internal:\/core\/misc\/druplicon.png",
|
||||
"thumbnail_width": 295,
|
||||
"thumbnail_height": 221
|
||||
}
|
897
web/core/modules/media/tests/fixtures/update/drupal-8.4.0-media_installed.php
vendored
Normal file
897
web/core/modules/media/tests/fixtures/update/drupal-8.4.0-media_installed.php
vendored
Normal file
File diff suppressed because one or more lines are too long
36
web/core/modules/media/tests/fixtures/update/drupal-8.media-add-additional-permissions.php
vendored
Normal file
36
web/core/modules/media/tests/fixtures/update/drupal-8.media-add-additional-permissions.php
vendored
Normal file
|
@ -0,0 +1,36 @@
|
|||
<?php
|
||||
// @codingStandardsIgnoreFile
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Contains database additions to drupal-8.4.0.bare.standard.php.gz for testing
|
||||
* the upgrade path of https://www.drupal.org/node/2862422.
|
||||
*/
|
||||
|
||||
use Drupal\Core\Database\Database;
|
||||
|
||||
$connection = Database::getConnection();
|
||||
|
||||
$role = $connection->select('config')
|
||||
->fields('config', ['data'])
|
||||
->condition('collection', '')
|
||||
->condition('name', 'user.role.authenticated')
|
||||
->execute()
|
||||
->fetchField();
|
||||
$role = unserialize($role);
|
||||
|
||||
$role['permissions'][] = 'update media';
|
||||
$role['permissions'][] = 'update any media';
|
||||
$role['permissions'][] = 'delete media';
|
||||
$role['permissions'][] = 'delete any media';
|
||||
$role['permissions'][] = 'create media';
|
||||
|
||||
$connection->update('config')
|
||||
->fields([
|
||||
'data' => serialize($role),
|
||||
'collection' => '',
|
||||
'name' => 'user.role.authenticated',
|
||||
])
|
||||
->condition('collection', '')
|
||||
->condition('name', 'user.role.authenticated')
|
||||
->execute();
|
Reference in a new issue